mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-15 16:27:11 +00:00
Keep DIM1/DIM-1 subdirectories when cloning a vanilla world directory for Spigot (#4334)
This commit is contained in:
1 parent
b5596f6296
commit
cf72f1573f
6 files changed
+26
-2
No files matched your search
@@ -127,8 +127,14 @@ if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] );
|
||||
if [ "$FAMILY" = "SPIGOT" ]; then
|
||||
# Reorganise if a Spigot server
|
||||
log "Moving End and Nether maps to Spigot location"
|
||||
[ -d "$worldDest/DIM1" ] && mv -f "$worldDest/DIM1" "${worldDest}_the_end"
|
||||
[ -d "$worldDest/DIM-1" ] && mv -f "$worldDest/DIM-1" "${worldDest}_nether"
|
||||
if [ -d "$worldDest/DIM1" ]; then
|
||||
mkdir -p "${worldDest}_the_end"
|
||||
mv -f "$worldDest/DIM1" "${worldDest}_the_end/"
|
||||
fi
|
||||
if [ -d "$worldDest/DIM-1" ]; then
|
||||
mkdir -p "${worldDest}_nether"
|
||||
mv -f "$worldDest/DIM-1" "${worldDest}_nether/"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user