im not even sure if this is reliable

This commit is contained in:
Mythril382
2024-07-06 12:17:22 +08:00
committed by GitHub
parent 51dc58379b
commit 36f07c2590
+2
View File
@@ -92,6 +92,7 @@ public class GlobalVars{
put("@ctrlCommand", ctrlCommand); put("@ctrlCommand", ctrlCommand);
//sounds //sounds
if(Core.assets != null){
for(Sound sound : Core.assets.getAll(Sound.class, new Seq<>(Sound.class))){ for(Sound sound : Core.assets.getAll(Sound.class, new Seq<>(Sound.class))){
if(sound != Sounds.none && sound != Sounds.swish){ if(sound != Sounds.none && sound != Sounds.swish){
String name = sound.file.nameWithoutExtension(); String name = sound.file.nameWithoutExtension();
@@ -99,6 +100,7 @@ public class GlobalVars{
put("@sfx-" + name, Sounds.getSoundId(sound)); put("@sfx-" + name, Sounds.getSoundId(sound));
} }
} }
}
//store base content //store base content