mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-15 03:52:12 +01:00
#889: Fix CraftChest close() sound being replaced with open sound.
By: James Peters <jameslfc19@gmail.com>
This commit is contained in:
parent
a061943cac
commit
96eed49699
@ -74,7 +74,7 @@ public class CraftChest extends CraftLootable<TileEntityChest> implements Chest
|
|||||||
if (getTileEntity().openersCounter.opened) {
|
if (getTileEntity().openersCounter.opened) {
|
||||||
IBlockData block = getTileEntity().getBlock();
|
IBlockData block = getTileEntity().getBlock();
|
||||||
getTileEntity().getWorld().playBlockAction(getPosition(), block.getBlock(), 1, 0);
|
getTileEntity().getWorld().playBlockAction(getPosition(), block.getBlock(), 1, 0);
|
||||||
TileEntityChest.playOpenSound(getTileEntity().getWorld(), getPosition(), block, SoundEffects.CHEST_OPEN);
|
TileEntityChest.playOpenSound(getTileEntity().getWorld(), getPosition(), block, SoundEffects.CHEST_CLOSE);
|
||||||
}
|
}
|
||||||
getTileEntity().openersCounter.opened = false;
|
getTileEntity().openersCounter.opened = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user