Better way to check if player is over water while dismounting.
This commit is contained in:
		| @@ -6086,15 +6086,7 @@ public class PlayerInstance extends Playable | ||||
| 	 | ||||
| 	public boolean dismount() | ||||
| 	{ | ||||
| 		WaterZone water = null; | ||||
| 		for (ZoneType zone : ZoneManager.getInstance().getZones(getX(), getY(), getZ() - 300)) | ||||
| 		{ | ||||
| 			if (zone instanceof WaterZone) | ||||
| 			{ | ||||
| 				water = (WaterZone) zone; | ||||
| 			} | ||||
| 		} | ||||
| 		if (water == null) | ||||
| 		if (ZoneManager.getInstance().getZone(getX(), getY(), getZ() - 300, WaterZone.class) == null) | ||||
| 		{ | ||||
| 			if (!isInWater() && (getZ() > 10000)) | ||||
| 			{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment