Made it so that Demon Will will be voided if the player's tartaric gems are all full.

This commit is contained in:
WayofTime 2016-01-29 21:19:59 -05:00
parent 219b997b24
commit eaba4e6cc2
3 changed files with 31 additions and 3 deletions

View file

@ -392,7 +392,7 @@ public class EventHandler
ItemStack remainder = PlayerDemonWillHandler.addDemonWill(player, stack);
if (remainder == null || ((IDemonWill) stack.getItem()).getWill(stack) < 0.0001)
if (remainder == null || ((IDemonWill) stack.getItem()).getWill(stack) < 0.0001 || PlayerDemonWillHandler.isDemonWillFull(player))
{
stack.stackSize = 0;
event.setResult(Result.ALLOW);