mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-26 09:53:51 -07:00
Fix for water and lava removal in creative mode BUKKIT-362
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user