mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
#889: Fix CraftChest close() sound being replaced with open sound.
This commit is contained in:
parent
ca0fe5b551
commit
aeb711dd3f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue