Obfuscated Obfuscation

- Fix ObfuscationReflectionHelper#setPrivateValue using SRG mapped names, Neoforge has switched to mojmap at runtime
This commit is contained in:
IThundxr 2024-05-11 21:14:18 -04:00
parent 56b0fce44d
commit 8c61f3fc1e
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -34,8 +34,7 @@ public class FlwLibXplatImpl implements FlwLibXplat {
field.setAccessible(true);
field.set(dispatcher, field.get(defaultDispatcher));
}
// fixme ~ is this still needed? neoforge uses mojmap at runtime
ObfuscationReflectionHelper.setPrivateValue(BlockRenderDispatcher.class, dispatcher, new ModelBlockRenderer(Minecraft.getInstance().getBlockColors()), "f_110900_");
ObfuscationReflectionHelper.setPrivateValue(BlockRenderDispatcher.class, dispatcher, new ModelBlockRenderer(Minecraft.getInstance().getBlockColors()), "modelRenderer");
} catch (Exception e) {
FlwImpl.LOGGER.error("Failed to initialize vanilla BlockRenderDispatcher!", e);
return defaultDispatcher;