From f83c4ec60b3383059f347eb7df8b8a45e005ba49 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 28 Dec 2016 19:28:05 +0100 Subject: [PATCH] Fix an Exception with Solidified Experience Closes #541 --- .../actuallyadditions/mod/items/ItemSolidifiedExperience.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java index a984cfc1d..7f4bdc3dc 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemSolidifiedExperience.java @@ -59,13 +59,13 @@ public class ItemSolidifiedExperience extends ItemBase{ if(!player.isSneaking()){ amount = SOLID_XP_AMOUNT; if(!player.capabilities.isCreativeMode){ - stack = StackUtil.addStackSize(stack, -1); + stack.stackSize--; } } else{ amount = SOLID_XP_AMOUNT*StackUtil.getStackSize(stack); if(!player.capabilities.isCreativeMode){ - stack = StackUtil.setStackSize(stack, 0); + stack.stackSize = 0; } }