LibrarianLib

LibrarianLib

18M Downloads

Liblib causes crashes with JEI

Unrepentant-Atheist opened this issue ยท 3 comments

commented

The issue seems to be that our code is assuming that getMapColor will always be passed a world, but JEI doesn't do that. I'm guessing this occurs when you try to search by color? (I think that's a thing, not sure though)

commented

Check for annotations in supers. Depending on that, the wrong is either on us or on jei :)

commented

Technically it's on JEI, but Minecraft's nullability annotations are so incomplete it makes anything not explicitly annotated suspect.

// Auto generated package-info by MCP
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package net.minecraft.block;

import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault;