Archiviert
13
0

SPIGOT-3329: Allow per world loot tables

Dieser Commit ist enthalten in:
md_5 2017-06-15 20:34:19 +10:00
Ursprung 885da43758
Commit a7d074c6c0

Datei anzeigen

@ -67,17 +67,16 @@
persistentscoreboard.a(this.scoreboard); persistentscoreboard.a(this.scoreboard);
((ScoreboardServer) this.scoreboard).a((Runnable) (new RunnableSaveScoreboard(persistentscoreboard))); ((ScoreboardServer) this.scoreboard).a((Runnable) (new RunnableSaveScoreboard(persistentscoreboard)));
- this.B = new LootTableRegistry(new File(new File(this.dataManager.getDirectory(), "data"), "loot_tables"));
- this.C = new AdvancementDataWorld(new File(new File(this.dataManager.getDirectory(), "data"), "advancements"));
- this.D = new CustomFunctionData(new File(new File(this.dataManager.getDirectory(), "data"), "functions"), this.server);
+ // CraftBukkit start + // CraftBukkit start
+ } else { + } else {
+ this.scoreboard = getServer().getScoreboardManager().getMainScoreboard().getHandle(); + this.scoreboard = getServer().getScoreboardManager().getMainScoreboard().getHandle();
+ } + }
+ // CraftBukkit end
+ +
+ if (this.B == null) { this.B = new LootTableRegistry(new File(new File(this.dataManager.getDirectory(), "data"), "loot_tables"));
+ this.B = new LootTableRegistry(new File(new File(this.dataManager.getDirectory(), "data"), "loot_tables")); - this.C = new AdvancementDataWorld(new File(new File(this.dataManager.getDirectory(), "data"), "advancements"));
+ } - this.D = new CustomFunctionData(new File(new File(this.dataManager.getDirectory(), "data"), "functions"), this.server);
+ // CraftBukkit start
+ if (this.C == null) { + if (this.C == null) {
+ this.C = new AdvancementDataWorld(new File(new File(this.dataManager.getDirectory(), "data"), "advancements")); + this.C = new AdvancementDataWorld(new File(new File(this.dataManager.getDirectory(), "data"), "advancements"));
+ } + }