Fix NPE in Server#getMap before worlds are loaded (#12492)

This commit is contained in:
David
2025-04-28 21:22:33 +02:00
committed by GitHub
parent d1810f241c
commit 02d20ff7eb
2 changed files with 7 additions and 7 deletions

View File

@@ -830,9 +830,8 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
* @param id the id of the map to get
* @return a map view if it exists, or null otherwise
*/
// @Deprecated(since = "1.6.2") // Paper - Not a magic value
@Nullable
public MapView getMap(int id);
MapView getMap(int id);
/**
* Create a new map with an automatically assigned ID.