From b2a4be6cc9bec62f83641db6794590ded02d8cb1 Mon Sep 17 00:00:00 2001 From: Simp Date: Sun, 25 Nov 2018 16:11:08 -0500 Subject: [PATCH] Sounds being weird --- src/com/projectkorra/projectkorra/airbending/AirBlast.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/airbending/AirBlast.java b/src/com/projectkorra/projectkorra/airbending/AirBlast.java index 9640e2b2..a7bfe81b 100644 --- a/src/com/projectkorra/projectkorra/airbending/AirBlast.java +++ b/src/com/projectkorra/projectkorra/airbending/AirBlast.java @@ -341,7 +341,7 @@ public class AirBlast extends AirAbility { door.setOpen(!door.isOpen()); 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); } } else if (Arrays.asList(TDOORS).contains(testblock.getType())) { @@ -360,7 +360,7 @@ public class AirBlast extends AirAbility { tDoor.setOpen(!tDoor.isOpen()); 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())) { if (testblock.getBlockData() instanceof Switch) {