diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 6dc97e0598..77ee71e9fe 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -2044,7 +2044,7 @@ public class LExecutor{ @Override public void run(LExecutor exec){ Sound sound = Sounds.getSound(exec.numi(id)); - if(sound == null || sound == Sounds.none || sound == Sounds.swish) sound = Sounds.pew; //no. + if(sound == null || sound == Sounds.swish) sound = Sounds.none; //no. if(positional){ sound.at(World.unconv(exec.numf(x)), World.unconv(exec.numf(y)), exec.numf(pitch), exec.numf(volume)); diff --git a/core/src/mindustry/logic/LStatements.java b/core/src/mindustry/logic/LStatements.java index 9142d0dc0c..02b4791933 100644 --- a/core/src/mindustry/logic/LStatements.java +++ b/core/src/mindustry/logic/LStatements.java @@ -2109,17 +2109,17 @@ public class LStatements{ row(table); - table.add("play "); + table.add(" play "); tfield = field(table, id, str -> id = str).padRight(0f).get(); table.button(b -> { b.image(Icon.pencilSmall); - b.clicked(() -> showSelect(b, GlobalVars.soundNames.toArray(String.class), id, t -> { + b.clicked(() -> showSelect(b, GlobalVars.soundNames.toArray(String.class), id.substring(4), t -> { sid("@sfx-" + t); rebuild(table); - }, 4, cell -> cell.size(160, 50))); + }, 2, cell -> cell.size(160, 50))); }, Styles.logict, () -> {}).size(40).color(table.color).left().padLeft(-1); row(table);