Indirect power

main
astoria 2 years ago
parent 441d8113ef
commit 6515acf57c

@ -64,7 +64,7 @@ public class RedstoneLinkTile extends AbstractWireTile {
@Override
public void updateTick(World world, int i, int j, int k, Random random) {
RedstoneLinkTileEntity link = (RedstoneLinkTileEntity) world.getBlockTileEntity(i, j, k);
if (world.isBlockGettingPowered(i, j, k)) {
if (world.isBlockGettingPowered(i, j, k) || world.isBlockIndirectlyGettingPowered(i, j, k)) {
link.outputs[0].floatvalue = 1.0f;
link.updateIO();
} else {

Loading…
Cancel
Save