mirror of
https://github.com/TeamMidnightDust/CullLeaves.git
synced 2025-12-18 15:15:10 +01:00
Some fixes
- Fix mixin apply error on NeoForge - Only reload world renderer when actually in a world
This commit is contained in:
@@ -11,7 +11,8 @@ public class CullLeavesConfig extends MidnightConfig {
|
||||
|
||||
@Override
|
||||
public void writeChanges(String modid) {
|
||||
MinecraftClient.getInstance().worldRenderer.reload();
|
||||
var client = MinecraftClient.getInstance();
|
||||
if (client.world != null) client.worldRenderer.reload();
|
||||
super.writeChanges(modid);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user