summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-03-04 16:16:16 -0600
committerEvilSeph <evilseph@gmail.com>2012-03-11 03:38:29 -0400
commitc84af98ccdbf19b144c4205807765cb253d8befc (patch)
tree1bc1bc48721f3ad3cc43f8a69f86c8b0bf0a9acf /src/main/java
parent4545336fdfa50258ceb70797121ea51f811da3e6 (diff)
downloadcraftbukkit-c84af98ccdbf19b144c4205807765cb253d8befc.tar
craftbukkit-c84af98ccdbf19b144c4205807765cb253d8befc.tar.gz
craftbukkit-c84af98ccdbf19b144c4205807765cb253d8befc.tar.lz
craftbukkit-c84af98ccdbf19b144c4205807765cb253d8befc.tar.xz
craftbukkit-c84af98ccdbf19b144c4205807765cb253d8befc.zip
Made World.refreshChunk() refresh the chunk, thanks zerg960! Fixes BUKKIT-1014
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 94f38747..2c41ba89 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -214,13 +214,16 @@ public class CraftWorld implements World {
int px = x << 4;
int pz = z << 4;
- // If there are more than 10 updates to a chunk at once, it carries out the update as a cuboid
- // This flags 16 blocks in a line along the bottom for update and then flags a block at the opposite corner at the top
- // The cuboid that contains these 17 blocks covers the entire chunk
+ // If there are more than 64 updates to a chunk at once, it carries out the update as a cuboid
+ // This flags 64 blocks along the bottom for update and then flags a block at the opposite corner at the top
+ // The cuboid that contains these 65 blocks covers the entire chunk
// The server will compress the chunk and send it to all clients
for (int xx = px; xx < (px + 16); xx++) {
world.notify(xx, 0, pz);
+ world.notify(xx, 1, pz);
+ world.notify(xx, 2, pz);
+ world.notify(xx, 3, pz);
}
world.notify(px, 255, pz + 15);