slates render properly now.

This commit is contained in:
Talia-12 2023-04-03 22:48:59 +10:00
parent 5c8f63beb2
commit 6fd69a5343
2 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,7 @@ public abstract class BlockCircleComponent extends Block implements ICircleCompo
@Override
public BlockState startEnergized(BlockPos pos, BlockState bs, Level world) {
var newState = bs.setValue(ENERGIZED, true);
world.setBlockAndUpdate(pos, bs);
world.setBlockAndUpdate(pos, newState);
return newState;
}

View file

@ -198,7 +198,8 @@ public class CircleExecutionState {
}
executorBlockState = executor.startEnergized(this.currentPos, executorBlockState, world);
this.reachedPositions.add(this.currentPos);
boolean halt = false;
var ctrl = executor.acceptControlFlow(this.currentImage, env, this.enteredFrom, this.currentPos,
executorBlockState, world);
@ -237,8 +238,6 @@ public class CircleExecutionState {
halt = true;
} else {
// A single valid exit position has been found.
reachedPositions.add(found.getFirst());
ICircleComponent.sfx(this.currentPos, executorBlockState, world, Objects.requireNonNull(env.getImpetus()), true);
currentPos = found.getFirst();
enteredFrom = found.getSecond();