Get PS from Location rather than Entity to minimize the risk for hitting a velocityX NaN bug.

This commit is contained in:
Olof Larsson
2014-11-18 10:00:15 +01:00
parent 7da0b805a1
commit 2240696c98
10 changed files with 22 additions and 19 deletions

View File

@ -37,7 +37,7 @@ public class CmdFactionsSeeChunkOld extends FactionsCommand
{
// Args
World world = me.getWorld();
PS chunk = PS.valueOf(me).getChunk(true);
PS chunk = PS.valueOf(me.getLocation()).getChunk(true);
int chunkX = chunk.getChunkX();
int chunkZ = chunk.getChunkZ();