summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:03:41 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:03:41 +0000
commit860e1b762d7bf181895bc031f5d1229a7943d656 (patch)
tree53436e8a1be333d3eea7530deddafc2d4aa5f8c5 /src/main/java/net
parentd374bff8d0973a592d744f70d24c271717eb7bfc (diff)
downloadcraftbukkit-860e1b762d7bf181895bc031f5d1229a7943d656.tar
craftbukkit-860e1b762d7bf181895bc031f5d1229a7943d656.tar.gz
craftbukkit-860e1b762d7bf181895bc031f5d1229a7943d656.tar.lz
craftbukkit-860e1b762d7bf181895bc031f5d1229a7943d656.tar.xz
craftbukkit-860e1b762d7bf181895bc031f5d1229a7943d656.zip
Fixed block type/data not updating with the world
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/WorldServer.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
index 11d3561c..47af8d8b 100644
--- a/src/main/java/net/minecraft/server/WorldServer.java
+++ b/src/main/java/net/minecraft/server/WorldServer.java
@@ -36,17 +36,23 @@ public class WorldServer extends World {
@Override
public boolean c(int i1, int j1, int k1, int l1) {
boolean result = super.c(i1, j1, k1, l1);
- if (world != null) world.updateBlock(i1, j1, k1);
+ if ((result) && (world != null)) world.updateBlock(i1, j1, k1);
return result;
}
@Override
- public boolean d(int i1, int j1, int k1, int l1) {
- boolean result = super.d(i1, j1, k1, l1);
- if (world != null) world.updateBlock(i1, j1, k1);
+ public boolean a(int i1, int j1, int k1, int l1) {
+ boolean result = super.a(i1, j1, k1, l1);
+ if ((result) && (world != null)) world.updateBlock(i1, j1, k1);
return result;
}
+ @Override
+ public void a(int i1, int j1, int k1, TileEntity tileentity) {
+ super.a(i1, j1, k1, tileentity);
+ if (world != null) world.updateBlock(i1, j1, k1);
+ }
+
public CraftWorld getWorld() {
return world;
}