mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
Sounds being weird
This commit is contained in:
parent
284be1235e
commit
b2a4be6cc9
|
@ -341,7 +341,7 @@ public class AirBlast extends AirAbility {
|
||||||
|
|
||||||
door.setOpen(!door.isOpen());
|
door.setOpen(!door.isOpen());
|
||||||
testblock.setBlockData(door);
|
testblock.setBlockData(door);
|
||||||
testblock.getWorld().playSound(testblock.getLocation(), "BLOCK_WOODEN_DOOR_" + (door.isOpen() ? "OPEN" : "CLOSE"), 0.5f, 0);
|
testblock.getWorld().playSound(testblock.getLocation(), Sound.valueOf("BLOCK_WOODEN_DOOR_" + (door.isOpen() ? "OPEN" : "CLOSE")), 0.5f, 0);
|
||||||
affectedLevers.add(testblock);
|
affectedLevers.add(testblock);
|
||||||
}
|
}
|
||||||
} else if (Arrays.asList(TDOORS).contains(testblock.getType())) {
|
} else if (Arrays.asList(TDOORS).contains(testblock.getType())) {
|
||||||
|
@ -360,7 +360,7 @@ public class AirBlast extends AirAbility {
|
||||||
|
|
||||||
tDoor.setOpen(!tDoor.isOpen());
|
tDoor.setOpen(!tDoor.isOpen());
|
||||||
testblock.setBlockData(tDoor);
|
testblock.setBlockData(tDoor);
|
||||||
testblock.getWorld().playSound(testblock.getLocation(), "BLOCK_WOODEN_TRAPDOOR_" + (tDoor.isOpen() ? "OPEN" : "CLOSE"), 0.5f, 0);
|
testblock.getWorld().playSound(testblock.getLocation(), Sound.valueOf("BLOCK_WOODEN_TRAPDOOR_" + (tDoor.isOpen() ? "OPEN" : "CLOSE")), 0.5f, 0);
|
||||||
}
|
}
|
||||||
} else if (Arrays.asList(BUTTONS).contains(testblock.getType())) {
|
} else if (Arrays.asList(BUTTONS).contains(testblock.getType())) {
|
||||||
if (testblock.getBlockData() instanceof Switch) {
|
if (testblock.getBlockData() instanceof Switch) {
|
||||||
|
|
Loading…
Reference in a new issue