Skip to content

Commit

Permalink
crash slain (closes FallingColors#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
walksanatora authored and Master-Bw3 committed Aug 29, 2024
1 parent 9eec8cf commit d1b7739
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ public boolean tick(BlockEntityAbstractImpetus impetus) {
var ctrl = executor.acceptControlFlow(this.currentImage, env, this.enteredFrom, this.currentPos,
executorBlockState, world);

if (env.getImpetus() == null)
return false; //the impetus got removed during the cast and no longer exists in the world. stop casting

if (ctrl instanceof ICircleComponent.ControlFlow.Stop) {
// acceptControlFlow should have already posted the error
halt = true;
Expand Down

0 comments on commit d1b7739

Please sign in to comment.