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
@@ -55,6 +55,11 @@ public class RedstoneP2PTunnelPart extends P2PTunnelPart<RedstoneP2PTunnelPart>
super(is);
}
@Override
protected float getPowerDrainPerTick() {
return 0.5f;
}
@MENetworkEventSubscribe
public void changeStateA(final MENetworkBootingStatusChange bs) {
this.setNetworkReady();
@@ -123,10 +128,6 @@ public class RedstoneP2PTunnelPart extends P2PTunnelPart<RedstoneP2PTunnelPart>
this.setNetworkReady();
}
public float getPowerDrainPerTick() {
return 0.5f;
}
@Override
public void onNeighborChanged(IBlockReader w, BlockPos pos, BlockPos neighbor) {
if (!this.isOutput()) {