Skip to content

Commit

Permalink
Lite Port from Master
Browse files Browse the repository at this point in the history
  • Loading branch information
WilloIzCitron committed May 18, 2024
1 parent 06c5bd9 commit f0ed495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@ Thumbs.db
android/libs/
## Debuging Jar
Mindustry.jar
## Personal Debuging Script
debug.bat
4 changes: 2 additions & 2 deletions src/bluearchive/units/UnitSound.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void init() {
if (e.unit != null) {
/* pass if the e.unit is specified */
if (e.unit.type == Vars.content.unit("collaris")) {
pickedSound.stop();
if(pickedSound != null) pickedSound.stop();
arrivalSound = Seq.with(new Sound(Vars.tree.get("sounds/units/collaris-arrival1.ogg")), new Sound(Vars.tree.get("sounds/units/collaris-arrival2.ogg")));
arrivalAssignedSound = arrivalSound.random();
arrivalAssignedSound.play();
Expand All @@ -40,7 +40,7 @@ public static void init() {
if (e.unit != null) {
/* pass if the e.unit is specified */
if (e.unit.type == Vars.content.unit("collaris")) {
arrivalAssignedSound.stop();
if(arrivalAssignedSound != null) arrivalAssignedSound.stop();
pickedSound.play();
}
}
Expand Down

0 comments on commit f0ed495

Please sign in to comment.