From ff8df5211c6cca733329db003c0a7805d2bfc455 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 4 Oct 2024 23:35:23 -0400 Subject: [PATCH] Test fix --- .../mindustry/world/blocks/environment/StaticWall.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/world/blocks/environment/StaticWall.java b/core/src/mindustry/world/blocks/environment/StaticWall.java index a95e062386..b59b25f30b 100644 --- a/core/src/mindustry/world/blocks/environment/StaticWall.java +++ b/core/src/mindustry/world/blocks/environment/StaticWall.java @@ -52,9 +52,11 @@ public class StaticWall extends Prop{ super.load(); int size = large.width / 2; split = large.split(size, size); - for(var arr : split){ - for(var reg : arr){ - reg.scale = region.scale; + if(split != null){ + for(var arr : split){ + for(var reg : arr){ + reg.scale = region.scale; + } } } }