Updated the Demon Aura hud by allowing it to actually see the Aura in the chunk - refresh rate is 50 ticks.
This commit is contained in:
parent
0ac2b78803
commit
98ed17fe21
9 changed files with 144 additions and 8 deletions
|
@ -80,9 +80,10 @@ public class TileDemonCrucible extends TileInventory implements ITickable, IDemo
|
|||
double currentAmount = WorldDemonWillHandler.getCurrentWill(worldObj, pos, type);
|
||||
double drainAmount = Math.min(maxWill - currentAmount, gemDrainRate);
|
||||
double filled = WorldDemonWillHandler.fillWillToMaximum(worldObj, pos, type, drainAmount, maxWill, false);
|
||||
filled = gemItem.drainWill(type, stack, filled, true);
|
||||
filled = gemItem.drainWill(type, stack, filled, false);
|
||||
if (filled > 0)
|
||||
{
|
||||
filled = gemItem.drainWill(type, stack, filled, true);
|
||||
WorldDemonWillHandler.fillWillToMaximum(worldObj, pos, type, filled, maxWill, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue