From 528b9b2e09ecf534383ea8bb6d2d42c6dabef4c5 Mon Sep 17 00:00:00 2001 From: Raphfrk Date: Wed, 2 Mar 2011 18:50:39 +0000 Subject: [PATCH] Fixed isChunkInUse() --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file 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 e740dea7bf..9781c48b89 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) {