Use geodata to correct spawn z value.

This commit is contained in:
MobiusDevelopment
2019-07-22 14:56:54 +00:00
parent 6b08dfde5c
commit d12b97d3cb
14 changed files with 124 additions and 36 deletions

View File

@ -398,6 +398,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);
}
// Set is not random walk default value
npc.setRandomWalking(_randomWalk);