When searching up "glass" or "glasses" in an arcane tablet with the glasses from OpenGlasses 2 it causes a crash
VossTheWolf opened this issue ยท 0 comments
Steps to reproduce:
- Go in a singleplayer world
- Get the glasses from OpenGlasses2
- Put the glasses in the EMC tablet
- Search "Glass"
Error:
```
java.lang.NullPointerException: Rendering screen
at com.bymarcin.openglasses.item.OpenGlassesItem$EnergyCapabilityProvider$1.getEnergyStored(OpenGlassesItem.java:228)
at com.bymarcin.openglasses.item.OpenGlassesItem.showDurabilityBar(OpenGlassesItem.java:199)
at net.minecraft.client.renderer.RenderItem.func_180453_a(RenderItem.java:412)
at com.latmod.mods.projectex.gui.ButtonCreateItem.func_191745_a(ButtonCreateItem.java:39)
at net.minecraft.client.gui.GuiScreen.func_73863_a(GuiScreen.java:70)
at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:80)
at com.latmod.mods.projectex.gui.GuiTableBase.func_73863_a(GuiTableBase.java:157)
at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:396)
at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1124)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1119)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)