Fixes #47. Can now put any world (not just first) into ram.

This commit is contained in:
Marcus Whybrow 2012-07-13 16:51:38 +01:00
parent f94c13dcf0
commit 98bb17999d

View File

@ -2583,7 +2583,7 @@ call_command() {
if [[ "$sid" -ge "0" ]]; then
if is_valid_name "$specified_name"; then
if [ -d "${SERVER_WORLD_ACTIVE_PATH[$sid]}/$specified_name" ] || [ -d "${SERVER_WORLD_INACTIVE_PATH[$sid]}/$specified_name" ]; then
if [ -d "${SERVER_WORLD_STORAGE[$sid]}/$specified_name" ] || [ -d "${SERVER_WORLD_STORAGE_INACTIVE[$sid]}/$specified_name" ]; then
wid="$(server_world_get_id "$sid" "$specified_name")"
fi
fi