summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}