Skip to content

Commit c59daa5

Browse files
committed
Possible crash fix
1 parent 93a784d commit c59daa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/mindustry/entities/comp/BuilderComp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void updateBuildLogic(){
188188
//otherwise, update it.
189189
if(current.breaking){
190190
entity.deconstruct(self(), core, bs);
191-
}else if(entity.current.unlockedNowHost()){ //only allow building unlocked blocks
191+
}else if(entity.current != null && entity.current.unlockedNowHost()){ //only allow building unlocked blocks
192192
entity.construct(self(), core, bs, current.config);
193193
}
194194

0 commit comments

Comments
 (0)