Anonym
public text v1 · immutable public void checkWaterState()
{
L2Zone zone = ZoneTable.getInstance().getZone("Water", getX(), getY(), getZ()); //checking if char is in water zone
if (zone != null)
{
ZoneTable.getInstance ().enterZone (this, zone);
_lastZone = zone;
}
else
{
ZoneTable.getInstance ().leaveZone (this, _lastZone);
_lastZone = null;
}
}