Posted June 26, 20205 yr I am getting NPE when trying to get capability. I changed line 19 to lambda becouse it was crashing there with another NPE. What should I do to fix this one? https://github.com/mcDandy/Winks-mod/blob/9808257e01ba70048d0228e2eb0b7013900ea2b1/src/main/java/cz/mcDandy/winksmod/Capabilities/FairyEnergyCapability.java#L29crash-2020-06-07_11.11.17-server.txt Edited June 26, 20205 yr by mcDandy grammer
June 26, 20205 yr Do you ever call this method, if not your capability will always be null. Call that method in FMLCommonSetupEvent. Edited June 26, 20205 yr by Novârch It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
June 27, 20205 yr Author Thank you. I thought I was registring it even capabilitie´s register method was net getting used.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.