mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 02:59:55 +01:00
Fix for water and lava removal in creative mode BUKKIT-362
This commit is contained in:
parent
474b7838a6
commit
81c751a8a3
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue