mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user