Skip to content

Commit 87f2df4

Browse files
committed
Make all directrix types disallow wave entry via their output faces
1 parent fa52064 commit 87f2df4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/directrix/BlockBooleanDirectrix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public ControlFlow acceptControlFlow(CastingImage imageIn, CircleCastEnv env, Di
7070

7171
@Override
7272
public boolean canEnterFromDirection(Direction enterDir, BlockPos pos, BlockState bs, ServerLevel world) {
73-
// No entering from the front, no entering from the back.
73+
// No entering from either of the output faces
7474
return enterDir != bs.getValue(FACING).getOpposite() && enterDir != bs.getValue(FACING);
7575
}
7676

Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/directrix/BlockEmptyDirectrix.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public ControlFlow acceptControlFlow(CastingImage imageIn, CircleCastEnv env, Di
4343

4444
@Override
4545
public boolean canEnterFromDirection(Direction enterDir, BlockPos pos, BlockState bs, ServerLevel world) {
46-
return true;
46+
// No entering from either of the output faces
47+
return enterDir != bs.getValue(FACING).getOpposite() && enterDir != bs.getValue(FACING);
4748
}
4849

4950
@Override

Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/directrix/BlockRedstoneDirectrix.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public ControlFlow acceptControlFlow(CastingImage imageIn, CircleCastEnv env, Di
4646

4747
@Override
4848
public boolean canEnterFromDirection(Direction enterDir, BlockPos pos, BlockState bs, ServerLevel world) {
49-
return true;
49+
// No entering from either of the output faces
50+
return enterDir != bs.getValue(FACING).getOpposite() && enterDir != bs.getValue(FACING);
5051
}
5152

5253
@Override

0 commit comments

Comments
 (0)