Skip to content

Commit

Permalink
fix: Fix NPE in LogicImageListener
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Dec 6, 2023
1 parent 43a3be6 commit 5348882
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class LogicImageListener(instances: InstanceManager) : ImperiumApplication.Liste
var building = event.tile.build
if (event.breaking &&
building is ConstructBlock.ConstructBuild &&
building.prevBuild != null &&
!building.prevBuild.isEmpty) {
building = building.prevBuild.first()
}
Expand Down

0 comments on commit 5348882

Please sign in to comment.