Initial push of the Inversion Pillars - this is before full implementation of features and before fixing the item model.
This commit is contained in:
parent
540e6941ef
commit
5c627d123c
10 changed files with 306 additions and 26 deletions
|
@ -129,9 +129,9 @@ public class WorldDemonWillHandler
|
|||
|
||||
DemonWillHolder currentWill = willChunk.getCurrentWill();
|
||||
double fill = Math.min(amount, max - currentWill.getWill(type));
|
||||
if (!doFill)
|
||||
if (!doFill || fill <= 0)
|
||||
{
|
||||
return fill;
|
||||
return fill > 0 ? fill : 0;
|
||||
}
|
||||
|
||||
fill = currentWill.addWill(type, amount, max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue