Fix WorldData getter

This commit is contained in:
Mrbysco 2024-03-04 21:59:11 +01:00
parent 056ec5c1e0
commit 5ac94e8fe4

View file

@ -38,7 +38,7 @@ public class WorldData extends SavedData {
}
public static WorldData get(Level level) {
return ((ServerLevel) level).getDataStorage().computeIfAbsent(WorldData::load, WorldData::new, SAVE_NAME);
return ((ServerLevel) level).getDataStorage().computeIfAbsent(new Factory<>(WorldData::new, WorldData::load), SAVE_NAME);
}
//TODO what in the world is this?