Skip to content

Commit

Permalink
gross patch to avoid crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Aug 23, 2023
1 parent 33cc160 commit deff640
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public void clearTargets() {
}

public void tick(Level level, BlockPos pos, BlockState state) {
if (!state.is(PortalCubedBlocks.LASER_EMITTER))
return;
multiSegments.clear();
if (!state.getValue(LaserEmitterBlock.POWERED)) {
clearTargets();
Expand Down

0 comments on commit deff640

Please sign in to comment.