mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
Remove unnecesary item check for ServerboundPlayerActionPacket RELEASE_USE_ITEM (#12668)
This commit is contained in:
@@ -1146,8 +1146,7 @@
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
case RELEASE_USE_ITEM:
|
case RELEASE_USE_ITEM:
|
||||||
- this.player.releaseUsingItem();
|
this.player.releaseUsingItem();
|
||||||
+ if (this.player.getUseItem() == this.player.getItemInHand(this.player.getUsedItemHand())) this.player.releaseUsingItem(); // Paper - validate use item before processing release
|
|
||||||
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.updateEquipmentOnPlayerActions) this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
|
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.updateEquipmentOnPlayerActions) this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
|
||||||
return;
|
return;
|
||||||
case START_DESTROY_BLOCK:
|
case START_DESTROY_BLOCK:
|
||||||
|
Reference in New Issue
Block a user