Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
SPIGOT-2867: Update inventory on cancelled interacts too
Dieser Commit ist enthalten in:
Ursprung
fffaf07113
Commit
6d5a66f00f
@ -224,7 +224,7 @@
|
|||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -280,63 +419,85 @@
|
@@ -280,63 +419,86 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,6 +280,7 @@
|
|||||||
+ } else if (blockdata.getBlock() instanceof BlockCake) {
|
+ } else if (blockdata.getBlock() instanceof BlockCake) {
|
||||||
+ ((EntityPlayer) entityhuman).getBukkitEntity().sendHealthUpdate(); // SPIGOT-1341 - reset health for cake
|
+ ((EntityPlayer) entityhuman).getBukkitEntity().sendHealthUpdate(); // SPIGOT-1341 - reset health for cake
|
||||||
+ }
|
+ }
|
||||||
|
+ ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory(); // SPIGOT-2867
|
||||||
+ enuminteractionresult = (event.useItemInHand() != Event.Result.ALLOW) ? EnumInteractionResult.SUCCESS : EnumInteractionResult.PASS;
|
+ enuminteractionresult = (event.useItemInHand() != Event.Result.ALLOW) ? EnumInteractionResult.SUCCESS : EnumInteractionResult.PASS;
|
||||||
+ } else if (this.gamemode == EnumGamemode.SPECTATOR) {
|
+ } else if (this.gamemode == EnumGamemode.SPECTATOR) {
|
||||||
+ TileEntity tileentity = world.getTileEntity(blockposition);
|
+ TileEntity tileentity = world.getTileEntity(blockposition);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren