mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-15 06:54:21 +01:00
Obfuscated Obfuscation
- Fix ObfuscationReflectionHelper#setPrivateValue using SRG mapped names, Neoforge has switched to mojmap at runtime
This commit is contained in:
parent
56b0fce44d
commit
8c61f3fc1e
@ -34,8 +34,7 @@ public class FlwLibXplatImpl implements FlwLibXplat {
|
|||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
field.set(dispatcher, field.get(defaultDispatcher));
|
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()), "modelRenderer");
|
||||||
ObfuscationReflectionHelper.setPrivateValue(BlockRenderDispatcher.class, dispatcher, new ModelBlockRenderer(Minecraft.getInstance().getBlockColors()), "f_110900_");
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
FlwImpl.LOGGER.error("Failed to initialize vanilla BlockRenderDispatcher!", e);
|
FlwImpl.LOGGER.error("Failed to initialize vanilla BlockRenderDispatcher!", e);
|
||||||
return defaultDispatcher;
|
return defaultDispatcher;
|
||||||
|
Loading…
Reference in New Issue
Block a user