SPIGOT-1847: Maps in non default worlds

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-03-10 16:42:07 +11:00
parent 45307a5099
commit 8eb667c8b4

View file

@ -14,7 +14,8 @@
+ worldMain.a(s, (PersistentBase) worldmap); // CraftBukkit
worldmap.scale = 0;
worldmap.a(entityhuman.locX, entityhuman.locZ, worldmap.scale);
worldmap.map = (byte) world.worldProvider.getDimensionManager().getDimensionID();
- worldmap.map = (byte) world.worldProvider.getDimensionManager().getDimensionID();
+ worldmap.map = (byte) ((WorldServer) world).dimension; // CraftBukkit - use bukkit dimension
worldmap.track = true;
worldmap.c();
+