mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-16 10:40:54 +02:00
Fix sounds when item frames are modified (MC-123450)
This also fixes the adding sound playing when the item frame direction is changed.
This commit is contained in:
parent
26c77784e5
commit
f5be267fbf
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@
|
|||
- if (!value.isEmpty()) {
|
||||
+ this.onItemChanged(itemstack);
|
||||
+ this.getEntityData().set(ItemFrame.DATA_ITEM, itemstack);
|
||||
+ if (!itemstack.isEmpty() && playSound) { // CraftBukkit
|
||||
+ if (!itemstack.isEmpty() && flag && playSound) { // CraftBukkit // Paper - only play sound when update flag is set
|
||||
this.playSound(this.getAddItemSound(), 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue