From 007760a8cba43cea445e9137d077f735b9ca4176 Mon Sep 17 00:00:00 2001 From: mobius <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 29 Jan 2015 13:06:59 +0000 Subject: [PATCH] Using reduced SpawnHeight z value to prevent npc spawn issues. --- trunk/java/com/l2jserver/gameserver/GeoData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/java/com/l2jserver/gameserver/GeoData.java b/trunk/java/com/l2jserver/gameserver/GeoData.java index 725a27a827..bd045fe46c 100644 --- a/trunk/java/com/l2jserver/gameserver/GeoData.java +++ b/trunk/java/com/l2jserver/gameserver/GeoData.java @@ -191,7 +191,8 @@ public class GeoData */ public int getSpawnHeight(int x, int y, int z) { - int nearestZ = getNearestZ(getGeoX(x), getGeoY(y), z + 100); + // + 30, defend against defective geodata and invalid spawn z + int nearestZ = getNearestZ(getGeoX(x), getGeoY(y), z + 30); // was z + 100 return Math.abs(nearestZ - z) <= SPAWN_Z_DELTA_LIMIT ? nearestZ : z; }