mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Fix WorldData getter
This commit is contained in:
parent
056ec5c1e0
commit
5ac94e8fe4
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue