Use the declared power drain for p2p tunnels (#4567)

This commit is contained in:
yueh
2020-08-06 20:07:40 +02:00
committed by GitHub
parent 822249dda8
commit c7d3877129
7 changed files with 31 additions and 13 deletions
@@ -61,6 +61,11 @@ public abstract class P2PTunnelPart<T extends P2PTunnelPart> extends BasicStateP
public P2PTunnelPart(final ItemStack is) {
super(is);
this.getProxy().setIdlePowerUsage(this.getPowerDrainPerTick());
}
protected float getPowerDrainPerTick() {
return 1.0f;
}
public TunnelCollection<T> getCollection(final Collection<P2PTunnelPart> collection,