Detector rails can now take comparator output from pool minecarts, like they do for chest carts. Output calculated with same formula as a comparator on a pool block itself.

This commit is contained in:
Vincent Lee committed 2017-12-31 20:14:19 -06:00
1 parent 639fcc78f4
commit b62ae8a2cb
3 files changed
+14 -6

No files matched your search

@@ -209,11 +209,7 @@ public class BlockPool extends BlockMod implements IWandHUD, IWandable, ILexicon
@Override
public int getComparatorInputOverride(IBlockState state, World world, BlockPos pos) {
TilePool pool = (TilePool) world.getTileEntity(pos);
int val = (int) ((double) pool.getCurrentMana() / (double) pool.manaCap * 15.0);
if(pool.getCurrentMana() > 0)
val = Math.max(val, 1);
return val;
return TilePool.calculateComparatorLevel(pool.getCurrentMana(), pool.manaCap);
}
@Override