Skip to content

Commit 25ce818

Browse files
authored
Leave behavior packs in place during upgrade (#522)
1 parent 8afabb7 commit 25ce818

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bedrock-entry.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ if [[ ! -f "bedrock_server-${VERSION}" ]]; then
135135
rm -rf "$d/$rp_dir"
136136
fi
137137
done
138+
elif [[ "$d" == "behavior_packs" ]]; then
139+
# remove Mojang provided ones
140+
find behavior_packs \( -name 'vanilla*' -o -name 'chemistry*' -o -name 'experimental*' \) -exec rm -rf {} +
138141
else
139142
mv $d "${bkupDir}/"
140143
fi

0 commit comments

Comments
 (0)