diff --git a/src/bluearchive/units/UnitSound.java b/src/bluearchive/units/UnitSound.java index cedf09e..6dbd603 100644 --- a/src/bluearchive/units/UnitSound.java +++ b/src/bluearchive/units/UnitSound.java @@ -16,12 +16,10 @@ public class UnitSound { public static Seq arrivalSound = Seq.with(); public static Seq hitSound = Seq.with(); - protected static Sound lastSound; - protected static Sound currentSound; static Interval hitInterval = new Interval(5); public static void init() { // tecta atlas start - Events.on(UnitUnloadEvent.class, e -> { + Events.on(PayloadDropEvent.class, e -> { if (e.unit.type == Vars.content.unit("tecta")) { arrivalSound = Seq.with(new Sound(Vars.tree.get("sounds/units/tecta-arrival1.ogg")), new Sound(Vars.tree.get("sounds/units/tecta-arrival2.ogg"))); arrivalSound.random().play();