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