Fix bugs with isSameChunk

This commit is contained in:
Olof Larsson 2013-04-25 12:05:52 +02:00
parent 1a3f153a08
commit ffab977475

View File

@ -169,9 +169,10 @@ public class MUtil
public static boolean isSameChunk(Location one, Location two)
{
if (one.getBlockX() >> 4 != one.getBlockX() >> 4) return false;
if (one.getBlockZ() >> 4 != one.getBlockZ() >> 4) return false;
return one.getWorld().equals(two.getWorld());
if (one.getBlockX() >> 4 != two.getBlockX() >> 4) return false;
if (one.getBlockZ() >> 4 != two.getBlockZ() >> 4) return false;
if (one.getWorld() != two.getWorld()) return false;
return true;
}
// -------------------------------------------- //