Fabric API

Fabric API

106M Downloads

block entity rendering fix broken

liach opened this issue ยท 2 comments

commented

a1ff8ff#diff-aba3371336d2d6af7ab993ec944fa638R43-R46

look at that lines above;
: calls and assign to INSTANCE; : when it's called INSTANCE is not yet assigned

fix is simple: change this to

	static {
		BlockEntityRendererRegistryImpl.setup((t, function) -> renderers.put(t, function.apply(INSTANCE)));
	}

so that the INSTANCE field is used when it has been properly initialized.

commented

Thanks for the analysis, this should be fixed now!