SPIGOT-6653: Canceling snow bucket placement removes snow from bucket

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-07-18 10:06:38 +10:00
parent 71d4016a4d
commit 59f5a7ab59
2 changed files with 13 additions and 9 deletions

View File

@@ -112,7 +112,7 @@
+ int oldCount = this.getCount();
+ WorldServer world = (WorldServer) itemactioncontext.getWorld();
+
+ if (!(this.getItem() instanceof ItemBucket)) { // if not bucket
+ if (!(this.getItem() instanceof ItemBucket || this.getItem() instanceof SolidBucketItem)) { // if not bucket
+ world.captureBlockStates = true;
+ // special case bonemeal
+ if (this.getItem() == Items.BONE_MEAL) {