nullcheck

This commit is contained in:
Mythril382
2024-05-27 23:10:07 +08:00
committed by GitHub
parent 580d35cf1e
commit dbb62bd87c

View File

@@ -2044,7 +2044,7 @@ public class LExecutor{
@Override
public void run(LExecutor exec){
Sound sound = Sounds.getSound(exec.numi(id));
if(sound == Sounds.none || sound == Sounds.swish) sound = Sounds.pew; //no.
if(sound == null || sound == Sounds.none || sound == Sounds.swish) sound = Sounds.pew; //no.
if(positional){
sound.at(World.unconv(exec.numf(x)), World.unconv(exec.numf(y)), exec.numf(pitch), exec.numf(volume));