Minor sound tweaks

This commit is contained in:
Anuken
2022-08-25 15:09:21 -04:00
parent 276a59b874
commit 8dca512b37
7 changed files with 28 additions and 10 deletions

View File

@@ -661,12 +661,8 @@ public class LExecutor{
int address = exec.numi(position);
Building from = exec.building(target);
if(from instanceof MemoryBuild mem && (exec.privileged || from.team == exec.team)){
if(address >= 0 && address < mem.memory.length){
mem.memory[address] = exec.num(value);
}
if(from instanceof MemoryBuild mem && (exec.privileged || from.team == exec.team) && address >= 0 && address < mem.memory.length){
mem.memory[address] = exec.num(value);
}
}
}