mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 03:59:37 +00:00
Defined redstone connections for Redstone Logic Adapters, closes #2808
This commit is contained in:
1 parent
6bda8addcb
commit
a1eb8306ee
1 file changed
+14
@@ -366,6 +366,20 @@ public class BlockReactor extends BlockContainer implements IBlockCTM
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
ReactorBlockType type = ReactorBlockType.get(this, world.getBlockMetadata(x, y, z));
|
||||
|
||||
switch(type)
|
||||
{
|
||||
case ADAPTER:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static enum ReactorBlockType
|
||||
{
|
||||
CONTROLLER(GeneratorsBlocks.Reactor, 0, "ReactorController", 10, TileEntityReactorController.class),
|
||||
|
||||
Reference in new issue
Block a user