Laser pierce & crash fixes

This commit is contained in:
Anuken
2026-01-09 22:02:24 -05:00
parent 06589cd77f
commit 4969e382f6
2 changed files with 2 additions and 4 deletions
@@ -141,7 +141,7 @@ public class StackConveyor extends Block implements Autotiler{
}
}else if(state == stateUnload){ //front unload
//TOOD hacky front check
if((blendprox & (1)) != 0 && !front().block.squareSprite){
if((blendprox & (1)) != 0 && front() != null && !front().block.squareSprite){
Draw.rect(sliced(regions[0], SliceMode.top), x + Geometry.d4x(rotation) * tilesize*0.75f, y + Geometry.d4y(rotation) * tilesize*0.75f, rotation * 90f);
}
}