summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphfrk <raphfrk@gmail.com>2011-03-02 18:50:39 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-07 12:29:37 +0000
commit528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5 (patch)
tree8f8daab405c94902af9f89b14729c9669289454b
parent44c25340dcabffd6387cf695269c4486aae2e6f2 (diff)
downloadcraftbukkit-528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5.tar
craftbukkit-528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5.tar.gz
craftbukkit-528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5.tar.lz
craftbukkit-528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5.tar.xz
craftbukkit-528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5.zip
Fixed isChunkInUse()
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index e740dea7..9781c48b 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -162,10 +162,10 @@ public class CraftWorld implements World {
// This is larger than the distance of loaded chunks that actually surround a player
// The player is the center of a 21x21 chunk grid, so the edge is 10 chunks (160 blocks) away from the player
if (Math.abs(loc.getBlockX() - (x << 4)) <= 256 && Math.abs(loc.getBlockZ() - (z << 4)) <= 256) {
- return false;
+ return true;
}
}
- return true;
+ return false;
}
public boolean loadChunk(int x, int z, boolean generate) {