13
0
geforkt von Mirrors/Paper

Make auxiliary worlds use the main scoreboard. Addresses BUKKIT-3984

When a world is created using our API, it does not use secondary world
server and will maintain a reference to its own scoreboard. In vanilla,
this is not an issue as there is only ever one world.

Similarly to maps, an overwrite to the scoreboard reference has been
added for when another world has been created.

This should also address BUKKIT-3982 and BUKKIT-3985

By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2013-04-04 23:35:16 -05:00
Ursprung c8eaad4f3f
Commit 76976e4797

Datei anzeigen

@ -721,8 +721,9 @@ public final class CraftServer implements Server {
}
internal.worldMaps = console.worlds.get(0).worldMaps;
internal.scoreboard = getScoreboardManager().getMainScoreboard().getHandle();
internal.tracker = new EntityTracker(internal); // CraftBukkit
internal.tracker = new EntityTracker(internal);
internal.addIWorldAccess(new WorldManager(console, internal));
internal.difficulty = 1;
internal.setSpawnFlags(true, true);