diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-04-04 23:35:16 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-04-04 23:35:16 -0500 |
commit | 535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee (patch) | |
tree | 94d92c96f449eea45afd1bf7eb5640761343d479 /src/main/java/net/minecraft | |
parent | 2a5e90fb8b2516099b3f521ac880e3830859e75f (diff) | |
download | craftbukkit-535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee.tar craftbukkit-535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee.tar.gz craftbukkit-535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee.tar.lz craftbukkit-535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee.tar.xz craftbukkit-535a85a5b0a25fdbce3a5ae8440d2c60f0fae6ee.zip |
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
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 96981854..03b71674 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -60,7 +60,7 @@ public abstract class World implements IBlockAccess { public final MethodProfiler methodProfiler; private final Vec3DPool J = new Vec3DPool(300, 2000); private final Calendar K = Calendar.getInstance(); - protected Scoreboard scoreboard = new Scoreboard(); + public Scoreboard scoreboard = new Scoreboard(); // CraftBukkit - protected -> public private final IConsoleLogManager logAgent; private UnsafeList M = new UnsafeList(); // CraftBukkit - ArrayList -> UnsafeList private boolean N; |