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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user