mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
Cleaned up this worlduid stuff a little.
This commit is contained in:
parent
4cab8635db
commit
83abbfe4d6
@ -393,7 +393,7 @@ public final class CraftServer implements Server {
|
||||
converter.convert(name, new ConvertProgressUpdater(console));
|
||||
}
|
||||
|
||||
int dimension = 10 + console.worlds.size();
|
||||
int dimension = Environment.values().length + 1 + console.worlds.size();
|
||||
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, seed, environment, generator);
|
||||
internal.worldMaps = console.worlds.get(0).worldMaps;
|
||||
|
||||
@ -491,8 +491,7 @@ public final class CraftServer implements Server {
|
||||
}
|
||||
|
||||
public World getWorld(long uid) {
|
||||
for (String worldName : worlds.keySet()) {
|
||||
org.bukkit.World world = worlds.get(worldName);
|
||||
for (World world : worlds.values()) {
|
||||
if (world.getUID() == uid) {
|
||||
return world;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user