|
@@ -20,6 +20,7 @@ package com.l2jserver.gameserver.network.clientpackets;
|
|
|
|
|
|
import com.l2jserver.Config;
|
|
import com.l2jserver.Config;
|
|
import com.l2jserver.gameserver.geoeditorcon.GeoEditorListener;
|
|
import com.l2jserver.gameserver.geoeditorcon.GeoEditorListener;
|
|
|
|
+import com.l2jserver.gameserver.model.L2World;
|
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
import com.l2jserver.gameserver.model.zone.ZoneId;
|
|
import com.l2jserver.gameserver.model.zone.ZoneId;
|
|
import com.l2jserver.gameserver.network.serverpackets.GetOnVehicle;
|
|
import com.l2jserver.gameserver.network.serverpackets.GetOnVehicle;
|
|
@@ -137,6 +138,12 @@ public class ValidatePosition extends L2GameClientPacket
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Don't allow flying transformations outside gracia area!
|
|
|
|
+ if (activeChar.isFlyingMounted() && (_x > L2World.GRACIA_MAX_X))
|
|
|
|
+ {
|
|
|
|
+ activeChar.untransform();
|
|
|
|
+ }
|
|
|
|
+
|
|
if (activeChar.isFlying() || activeChar.isInsideZone(ZoneId.WATER))
|
|
if (activeChar.isFlying() || activeChar.isInsideZone(ZoneId.WATER))
|
|
{
|
|
{
|
|
activeChar.setXYZ(realX, realY, _z);
|
|
activeChar.setXYZ(realX, realY, _z);
|