Skip to content

Commit a993d1b

Browse files
committed
Fix power wires not turning off at night
1 parent 2a9ec34 commit a993d1b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/ml/sakii/factoryisland/blocks/components/PowerGeneratorComponent.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ public boolean onTick(long tick) {
4444

4545
public void setPower(float power){
4646
block.setMetadata("generating",power+"",true);
47-
if(power==0) {
48-
for(PowerConsumerComponent c : consumers) {
49-
c.removePower(this);
50-
}
51-
return;
52-
}
5347
HashMap<BlockFace,Block> blocks = block.Engine.world.get6Blocks(block, false);
5448
HashSet<PowerConsumerComponent> totalConsumers = new HashSet<>();
5549
for(BlockFace face:BlockFace.values) {

0 commit comments

Comments
 (0)