Fix blocks connecting with themselves

This commit is contained in:
raoulvdberge
2019-11-11 22:32:28 +01:00
parent f58bf5be18
commit ce189d571a

View File

@@ -102,7 +102,7 @@ public class CableBlock extends NetworkNodeBlock {
}
private boolean hasNode(World world, BlockPos pos, BlockState state, Direction direction) {
if (getDirection() != BlockDirection.NONE && state.get(getDirection().getProperty()) == direction.getOpposite()) {
if (getDirection() != BlockDirection.NONE && state.get(getDirection().getProperty()).getOpposite() == direction) {
return false;
}