mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
Update player_building.java
This commit is contained in:
@@ -950,15 +950,18 @@ public class player_building extends script.base_script
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!utils.hasScriptVar(target, "vertical.min_height") || !utils.hasScriptVar(target, "vertical.max_height"))
|
||||
if(!isGod(self)) // fix for allowing moving static items indoors UP/DOWN in god mode
|
||||
{
|
||||
sendSystemMessage(self, new string_id(STF, "error_move_item"));
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (new_y < utils.getFloatScriptVar(target, "vertical.min_height") || new_y > utils.getFloatScriptVar(target, "vertical.max_height"))
|
||||
{
|
||||
sendSystemMessage(self, new string_id(STF, "not_valid_location"));
|
||||
return SCRIPT_CONTINUE;
|
||||
if (!utils.hasScriptVar(target, "vertical.min_height") || !utils.hasScriptVar(target, "vertical.max_height"))
|
||||
{
|
||||
sendSystemMessage(self, new string_id(STF, "error_move_item"));
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (new_y < utils.getFloatScriptVar(target, "vertical.min_height") || new_y > utils.getFloatScriptVar(target, "vertical.max_height"))
|
||||
{
|
||||
sendSystemMessage(self, new string_id(STF, "not_valid_location"));
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (target != intendedTarget)
|
||||
|
||||
Reference in New Issue
Block a user