updateCoord

fun updateCoord(worldId: Int, level: Int, x: Int, z: Int)

Updates the coordinate of the local player, as this is necessary to know how far NPCs nearby are to the player, which allows us to remove NPCs that have gone too far out, and add NPCs that are within certain distance.

Parameters

level

the height level of the local player

x

the x coordinate of the local player

z

the z coordinate of the local player