Leave behavior packs in place during upgrade (#522)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2025-06-03 21:36:59 -05:00
1 parent 8afabb7102
commit 25ce8187be
1 file changed
+3
+3
View File
@@ -135,6 +135,9 @@ if [[ ! -f "bedrock_server-${VERSION}" ]]; then
rm -rf "$d/$rp_dir" rm -rf "$d/$rp_dir"
fi fi
done done
elif [[ "$d" == "behavior_packs" ]]; then
# remove Mojang provided ones
find behavior_packs \( -name 'vanilla*' -o -name 'chemistry*' -o -name 'experimental*' \) -exec rm -rf {} +
else else
mv $d "${bkupDir}/" mv $d "${bkupDir}/"
fi fi