Start on REI support, very basic right now, but it will help a lot when adding recipes.

This commit is contained in:
modmuss50 2019-07-25 13:14:46 +01:00
parent a80d2183f9
commit 52da17dfd5
6 changed files with 182 additions and 1 deletions

View file

@ -124,7 +124,7 @@ public class BlockCable extends BlockWithEntity {
private Boolean canConnectTo(IWorld world, BlockPos pos, Direction facing) {
BlockEntity blockEntity = world.getBlockEntity(pos);
if (blockEntity != null && (blockEntity instanceof EnergyBlockEntity)) {
if (blockEntity != null && (blockEntity instanceof EnergyBlockEntity || blockEntity instanceof CableBlockEntity)) {
return Boolean.TRUE;
}
return Boolean.FALSE;