Multiple Enhancements Brought Up To Me By Frasty

This commit is contained in:
Driftay
2019-08-26 07:31:02 -04:00
parent c93d2f235a
commit 38247b17c2
4 changed files with 15 additions and 4 deletions

View File

@@ -202,7 +202,8 @@ public class FLocation implements Serializable {
int lim = FLocation.chunkToRegion((int) border.getSize()) - buffer;
int diffX = chunk.getX() - x;
int diffZ = chunk.getZ() - z;
return diffX > lim || diffZ > lim || -diffX > lim - 1 || -diffZ > lim - 1;
return (diffX > lim || diffZ > lim) || (-diffX >= lim || -diffZ >= lim);
}
//----------------------------------------------//