SPIGOT-4608: Improve quality of MapMeta APIs

This commit is contained in:
md_5
2019-02-05 21:29:03 +11:00
parent 2ced02339a
commit 3d19f011e9
3 changed files with 27 additions and 1 deletions

View File

@@ -1244,7 +1244,7 @@ public final class CraftServer implements Server {
@Override
@Deprecated
public CraftMapView getMap(short id) {
public CraftMapView getMap(int id) {
PersistentCollection collection = console.getWorldServer(DimensionManager.OVERWORLD).worldMaps;
WorldMap worldmap = (WorldMap) collection.get(DimensionManager.OVERWORLD, WorldMap::new, "map_" + id);
if (worldmap == null) {