Skip to content

Commit 0e64614

Browse files
authored
Fix charcoal pire ingiter structure (#5080)
1 parent 03346e4 commit 0e64614

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/primitive/CharcoalPileIgniterMachine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static ExpandablePattern.BoundsProvider boundsFunction() {
8585
int r = findWallPos(level, right, down.mutable());
8686
int b = findWallPos(level, back, down.mutable());
8787
int f = findWallPos(level, front, down.mutable());
88-
int d = findFloorPos(level, up.getOpposite(), controllerPos.mutable());
88+
int d = findFloorPos(level, up.getOpposite(), down.mutable());
8989

9090
if (d < MIN_DEPTH || l < MIN_RADIUS || r < MIN_RADIUS || b < MIN_RADIUS || f < MIN_RADIUS) {
9191
return new IntArrayList(new int[] { 0, MIN_DEPTH, MIN_RADIUS, MIN_RADIUS, MIN_RADIUS, MIN_RADIUS });
@@ -131,7 +131,7 @@ public static Function<MultiblockMachineDefinition, IBlockPattern> getPattern()
131131

132132
int intersects = 0;
133133
boolean topAisle = bp.getX() == b.get(0);
134-
boolean bottomAisle = bp.getX() == -b.get(1);
134+
boolean bottomAisle = bp.getX() == -(b.get(1) + 1);
135135

136136
if (topAisle || bottomAisle) intersects++;
137137

0 commit comments

Comments
 (0)