fix #3756 by allowing to recompute worldData if null

This commit is contained in:
Wagyourtail
2022-12-19 07:42:23 -07:00
parent 1112feff5b
commit 0e35a3e62b

View File

@@ -48,6 +48,10 @@ public class WorldProvider implements IWorldProvider, Helper {
@Override
public final WorldData getCurrentWorld() {
// attempt reload if the worldData is null
if (currentWorld == null && mc.level != null) {
initWorld(mc.level.dimension(), mc.level.dimensionType());
}
return this.currentWorld;
}