mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-1775: Pass in unshifted block for PlayerBucketEmptyEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
675bcf3b80
commit
cd40ed3908
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@
|
|||
if (!entityhuman.a(blockposition1, movingobjectposition.direction, itemstack)) {
|
||||
return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
||||
- } else if (this.a(entityhuman, world, blockposition1)) {
|
||||
+ } else if (this.a(entityhuman, world, blockposition1, movingobjectposition.direction, itemstack)) { // CraftBukkit
|
||||
+ } else if (this.a(entityhuman, world, blockposition, movingobjectposition.direction, itemstack)) { // CraftBukkit
|
||||
entityhuman.b(StatisticList.b((Item) this));
|
||||
return !entityhuman.abilities.canInstantlyBuild ? new InteractionResultWrapper(EnumInteractionResult.SUCCESS, new ItemStack(Items.BUCKET)) : new InteractionResultWrapper(EnumInteractionResult.SUCCESS, itemstack);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue