fix #3756 by allowing to recompute worldData if null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user