Create Fabric

Create Fabric

7M Downloads

Incompatible with Caxton when interacting with Train Station: `java.lang.NullPointerException: Cannot invoke "java.util.function.Function.apply(Object)" because "this.field_1997" is null`

bluebear94 opened this issue · 4 comments

commented

Context

Interacting with Create’s train station crashes when Caxton installed.

This is caused by a missing access widener to Font#getFontSet; adding this line to Create’s access widener should solve the problem. Indeed, one workaround is to install ImmediatelyFast, which has an access widener to the same method.

extendable method net/minecraft/client/gui/Font getFontSet (Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/client/gui/font/FontSet;

(The version of Caxton used is the latest 1.20.1 branch on the repository, which has yet to be released.)

See issue originally posted on Caxton’s repo.

Crash Report

https://mclo.gs/8oIESvC

commented

is caxton using the fonts (mojmap) field in the Font class by any chance?

commented

fixed the crash with 4c28059 the text has shadows when caxton is installed, not sure if that's fixable on our side since caxton seems to be doing some stuff with fonts & text drawing

commented

Yeah, fixing the shadow issue is going to be harder.

commented

If it's feasible for create to fix it i don't mind fixing it, but if it's easier for you to fix it on your side that would be nice, either way works