#889: Fix CraftChest close() sound being replaced with open sound.

This commit is contained in:
James Peters 2021-07-15 20:29:38 +10:00 committed by md_5
parent ca0fe5b551
commit aeb711dd3f
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -74,7 +74,7 @@ public class CraftChest extends CraftLootable<TileEntityChest> implements Chest
if (getTileEntity().openersCounter.opened) {
IBlockData block = getTileEntity().getBlock();
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;
}