From 6fd69a534336ee903b94826db5e30e2189a35c16 Mon Sep 17 00:00:00 2001 From: Talia-12 Date: Mon, 3 Apr 2023 22:48:59 +1000 Subject: [PATCH] slates render properly now. --- .../hexcasting/api/block/circle/BlockCircleComponent.java | 2 +- .../hexcasting/api/casting/circles/CircleExecutionState.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/api/block/circle/BlockCircleComponent.java b/Common/src/main/java/at/petrak/hexcasting/api/block/circle/BlockCircleComponent.java index 8da32aa7..5e56ea67 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/block/circle/BlockCircleComponent.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/block/circle/BlockCircleComponent.java @@ -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; } diff --git a/Common/src/main/java/at/petrak/hexcasting/api/casting/circles/CircleExecutionState.java b/Common/src/main/java/at/petrak/hexcasting/api/casting/circles/CircleExecutionState.java index 84d74229..d20b72cd 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/casting/circles/CircleExecutionState.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/casting/circles/CircleExecutionState.java @@ -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();