Fix for water and lava removal in creative mode BUKKIT-362

Dieser Commit ist enthalten in:
Tahg 2011-12-20 21:20:43 -05:00
Ursprung 474b7838a6
Commit 81c751a8a3

Datei anzeigen

@ -50,13 +50,13 @@ public class ItemBucket extends Item {
if (event.isCancelled()) { if (event.isCancelled()) {
return itemstack; return itemstack;
} }
world.setTypeId(i, j, k, 0);
if (entityhuman.abilities.canInstantlyBuild) { if (entityhuman.abilities.canInstantlyBuild) {
return itemstack; return itemstack;
} }
// CraftBukkit end // CraftBukkit end
world.setTypeId(i, j, k, 0);
return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit
} }
@ -67,13 +67,13 @@ public class ItemBucket extends Item {
if (event.isCancelled()) { if (event.isCancelled()) {
return itemstack; return itemstack;
} }
world.setTypeId(i, j, k, 0);
if (entityhuman.abilities.canInstantlyBuild) { if (entityhuman.abilities.canInstantlyBuild) {
return itemstack; return itemstack;
} }
// CraftBukkit end // CraftBukkit end
world.setTypeId(i, j, k, 0);
return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit return CraftItemStack.createNMSItemStack(event.getItemStack()); // CraftBukkit
} }
} else { } else {