mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-14 12:59:46 +01:00
fix: mass teleport position validation (#214)
* fix: mass teleport position validation * fix: max position
This commit is contained in:
@@ -90,8 +90,8 @@ if (isset($_POST['action']) && $_POST['action']) {
|
||||
admin_teleport_town($town_id);
|
||||
break;
|
||||
case 'set-position':
|
||||
if ((!$posx || !$posy || !$posz) && !$to_temple) {
|
||||
displayMessage('Please fill all inputs');
|
||||
if (!$to_temple && ($posx < 0 || $posx > 65535 || $posy < 0 || $posy > 65535|| $posz < 0 || $posz > 16)) {
|
||||
displayMessage('Invalid Position');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user