the title above is leading to java.lang.IllegalAccessError: tried to access field net.minecraft.item.ItemStack.field_77994_a from class but i cant find the reason so welp
for more detail:
if (Minecraft.getMinecraft().player != null) { for (int i = 0; i < 45; i++) { ItemStack itemStack = Minecraft.getMinecraft().player.inventory.getStackInSlot(i); int stacksize = Minecraft.getMinecraft().player.inventory.getStackInSlot(i).stackSize; if (itemStack.getItem() == Items.END_CRYSTAL) { crystalCount += stacksize; } } }