Prevented inactive worlds from being backed up.

This commit is contained in:
Marcus Whybrow 2012-07-13 19:45:33 +01:00
parent da468788d0
commit b4f42d01e9

View File

@ -948,7 +948,9 @@ server_worlds_backup() {
# For each of the servers worlds:
while [[ "$i" -lt "$max" ]]; do
world_backup "$i"
if [[ "${WORLD_STATUS[$i]}" == "active" ]]; then
world_backup "$i"
fi
i="$(( $i + 1 ))"
done
}