#2658 Ignore 0 strength redstone signals for active state

This commit is contained in:
tterrag1098 committed 2015-07-21 17:50:45 -04:00
1 parent 97fdc3f55c
commit 6f28b58bee
2 files changed
+8 -2

No files matched your search

@@ -125,7 +125,13 @@ public class RedstoneConduitNetwork extends AbstractConduitNetwork<IRedstoneCond
@Override
public void notifyNetworkOfUpdate() {
for (IRedstoneConduit con : conduits) {
con.setActive(!getSignals().isEmpty());
con.setActive(false);
for (Signal s : getSignals()) {
if (s.strength > 0) {
con.setActive(true);
break;
}
}
}
super.notifyNetworkOfUpdate();
}
@@ -53,7 +53,7 @@ public class KillerJoeRenderer extends TileEntitySpecialRenderer implements IIte
GL11.glPushMatrix();
GL11.glTranslatef((float) x, (float) y, (float) z);
renderModel(gen.facing);
renderSword(gen.facing, gen.getStackInSlot(0), gen.getSwingProgress(tick));
renderSword(gen.facing, gen.getStackInSlot(0), swingProg);
renderFluid(gen);
GL11.glPopMatrix();