Made it so that Demon Will will be voided if the player's tartaric gems are all full.
This commit is contained in:
parent
219b997b24
commit
eaba4e6cc2
3 changed files with 31 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue