summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-12-20 21:20:43 -0500
committerTahg <tahgtahv@gmail.com>2011-12-20 21:20:43 -0500
commit81c751a8a3feeb9c8d2b66177badd0e415f13cc7 (patch)
treea094dfa1774c67cb425a2f70aa07ea5a6e18559d /src/main/java
parent474b7838a6294bc96b33f9534f37eb7cefa139a0 (diff)
downloadcraftbukkit-81c751a8a3feeb9c8d2b66177badd0e415f13cc7.tar
craftbukkit-81c751a8a3feeb9c8d2b66177badd0e415f13cc7.tar.gz
craftbukkit-81c751a8a3feeb9c8d2b66177badd0e415f13cc7.tar.lz
craftbukkit-81c751a8a3feeb9c8d2b66177badd0e415f13cc7.tar.xz
craftbukkit-81c751a8a3feeb9c8d2b66177badd0e415f13cc7.zip
Fix for water and lava removal in creative mode BUKKIT-362
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/ItemBucket.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBucket.java b/src/main/java/net/minecraft/server/ItemBucket.java
index 4b6a2422..3dd4c157 100644
--- a/src/main/java/net/minecraft/server/ItemBucket.java
+++ b/src/main/java/net/minecraft/server/ItemBucket.java
@@ -50,13 +50,13 @@ public class ItemBucket extends Item {
if (event.isCancelled()) {
return itemstack;
}
+ world.setTypeId(i, j, k, 0);
if (entityhuman.abilities.canInstantlyBuild) {
return itemstack;
}
// CraftBukkit end
- world.setTypeId(i, j, k, 0);
return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit
}
@@ -67,13 +67,13 @@ public class ItemBucket extends Item {
if (event.isCancelled()) {
return itemstack;
}
+ world.setTypeId(i, j, k, 0);
if (entityhuman.abilities.canInstantlyBuild) {
return itemstack;
}
// CraftBukkit end
- world.setTypeId(i, j, k, 0);
return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit
}
} else {