mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
#2658 Ignore 0 strength redstone signals for active state
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user