Created fillWill method for the tartaric gem.
This commit is contained in:
parent
b818939a9c
commit
a88d7f43b8
5 changed files with 29 additions and 20 deletions
|
@ -266,16 +266,7 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
return Math.min(maxWill - current, amount);
|
||||
}
|
||||
|
||||
double filled = maxWill - current;
|
||||
|
||||
if (amount < filled)
|
||||
{
|
||||
willGem.setWill(type, stack, current + amount);
|
||||
filled = amount;
|
||||
} else
|
||||
{
|
||||
willGem.setWill(type, stack, maxWill);
|
||||
}
|
||||
double filled = willGem.fillWill(type, stack, amount);
|
||||
|
||||
return filled;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue