Worldborder check fixed.

This commit is contained in:
ProSavage 2018-11-17 13:00:14 -06:00
parent 2178dac54f
commit dd1b6d76c8

View File

@ -199,9 +199,9 @@ public class FLocation implements Serializable {
Chunk chunk = border.getCenter().getChunk();
int lim = FLocation.chunkToRegion((int) border.getSize()) - buffer;
int diffX = Math.abs(chunk.getX() - x);
int diffZ = Math.abs(chunk.getZ() - z);
return diffX > lim || diffZ > lim;
int diffX = chunk.getX() - x;
int diffZ = chunk.getZ() - z;
return diffX > lim || diffZ > lim || -diffX > lim - 1 || -diffZ > lim - 1;
}
//----------------------------------------------//