File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
paper-server/patches/sources/net/minecraft/server/level Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 941
941
+ // Paper start - Call missing map initialize event and set id
942
942
+ final DimensionDataStorage storage = this.getServer().overworld().getDataStorage();
943
943
+
944
- + final Optional<net.minecraft.world.level.saveddata.SavedData> cacheEntry = storage.cache.get(mapId.key( ));
944
+ + final Optional<net.minecraft.world.level.saveddata.SavedData> cacheEntry = storage.cache.get(MapItemSavedData.type(mapId ));
945
945
+ if (cacheEntry == null) { // Cache did not contain, try to load and may init
946
946
+ final MapItemSavedData mapData = storage.get(MapItemSavedData.type(mapId)); // get populates the cache
947
947
+ if (mapData != null) { // map was read, init it and return
You can’t perform that action at this time.
0 commit comments