Make link function as intended

visibileWires
Astoria 1 year ago
parent 87fe0de60a
commit b0546af597

@ -38,7 +38,7 @@ public class RedstoneLinkTileEntity extends AbstractWireTileEntity {
RedstoneLinkTile.updateLinkBlockState(true, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
this.shouldnotremove = false;
this.isActive = true;
} else if(inputs[0].floatvalue == 0 && this.isActive && worldObj.blockExists(xCoord, yCoord, zCoord) && worldObj.getBlockId(xCoord, yCoord, zCoord) == WireMod.LinkTileActive.blockID){
} else if(inputs[0].floatvalue <= 0 && this.isActive && worldObj.blockExists(xCoord, yCoord, zCoord) && worldObj.getBlockId(xCoord, yCoord, zCoord) == WireMod.LinkTileActive.blockID){
this.shouldnotremove = true;
RedstoneLinkTile.updateLinkBlockState(false, this.worldObj, this.xCoord, this.yCoord, this.zCoord);
this.shouldnotremove = false;

Loading…
Cancel
Save