Fixed the Hellfire Forge filling the Tartaric Gem with the incorrect Will from the Demon Aura, without actually adding to the gem
This commit is contained in:
parent
c34bd48aa5
commit
b8745e34ee
5 changed files with 20 additions and 25 deletions
|
@ -26,7 +26,7 @@ public interface IDemonWillGem
|
|||
|
||||
int getMaxWill(EnumDemonWillType type, ItemStack willGemStack);
|
||||
|
||||
double drainWill(EnumDemonWillType type, ItemStack stack, double drainAmount);
|
||||
double drainWill(EnumDemonWillType type, ItemStack stack, double drainAmount, boolean doDrain);
|
||||
|
||||
double fillWill(EnumDemonWillType type, ItemStack stack, double fillAmount);
|
||||
double fillWill(EnumDemonWillType type, ItemStack stack, double fillAmount, boolean doFill);
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public class PlayerDemonWillHandler
|
|||
inventory[i] = null;
|
||||
} else if (stack.getItem() instanceof IDemonWillGem)
|
||||
{
|
||||
consumed += ((IDemonWillGem) stack.getItem()).drainWill(type, stack, amount - consumed);
|
||||
consumed += ((IDemonWillGem) stack.getItem()).drainWill(type, stack, amount - consumed, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ public class PlayerDemonWillHandler
|
|||
{
|
||||
if (stack != null && stack.getItem() instanceof IDemonWillGem)
|
||||
{
|
||||
remaining -= ((IDemonWillGem) stack.getItem()).fillWill(type, stack, remaining);
|
||||
remaining -= ((IDemonWillGem) stack.getItem()).fillWill(type, stack, remaining, true);
|
||||
if (remaining <= 0)
|
||||
break;
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ public class PlayerDemonWillHandler
|
|||
{
|
||||
if (stack != null && !stack.equals(ignored) && stack.getItem() instanceof IDemonWillGem)
|
||||
{
|
||||
remaining -= ((IDemonWillGem) stack.getItem()).fillWill(type, stack, remaining);
|
||||
remaining -= ((IDemonWillGem) stack.getItem()).fillWill(type, stack, remaining, true);
|
||||
|
||||
if (remaining <= 0)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue