Use geodata to correct spawn z value.
This commit is contained in:
@@ -392,6 +392,12 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
||||
}
|
||||
}
|
||||
|
||||
// Do not correct z of flying NPCs.
|
||||
if (!npc.isFlying())
|
||||
{
|
||||
newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||
}
|
||||
|
||||
npc.stopAllEffects();
|
||||
|
||||
npc.setIsDead(false);
|
||||
|
Reference in New Issue
Block a user