Skip to content

Commit

Permalink
Fix slabs not connecting to full blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Aug 29, 2024
1 parent e103528 commit 0839d76
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public boolean isIgnoredConnectivitySide(String property, BlockAndTintGetter rea
BlockPos toTruePos = scaledReader.getTruePos(toPos);
return fromTruePos.equals(toTruePos);
}
return !toState.is(this) || toState.getValue(AXIS) != state.getValue(AXIS);
return toState.is(this) && toState.getValue(AXIS) != state.getValue(AXIS);
}

@Override
Expand All @@ -189,7 +189,10 @@ public boolean canConnectTexturesToward(String property, BlockAndTintGetter read
if (reader instanceof ScaledBlockAndTintGetter scaledReader) {
BlockPos fromTruePos = scaledReader.getTruePos(fromPos);
BlockPos toTruePos = scaledReader.getTruePos(toPos);
return !fromTruePos.equals(toTruePos) && toState.is(this) && toState.getValue(AXIS) == state.getValue(AXIS);
return !fromTruePos.equals(toTruePos) && (
toState.is(this) && toState.getValue(AXIS) == state.getValue(AXIS) ||
!toState.is(this)
);
}
return toState.is(this) && toState.getValue(AXIS) == state.getValue(AXIS);
}
Expand Down

0 comments on commit 0839d76

Please sign in to comment.