mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
SPIGOT-3329: Allow per world loot tables
This commit is contained in:
parent
885da43758
commit
a7d074c6c0
@ -67,17 +67,16 @@
|
||||
|
||||
persistentscoreboard.a(this.scoreboard);
|
||||
((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
|
||||
+ } else {
|
||||
+ 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) {
|
||||
+ this.C = new AdvancementDataWorld(new File(new File(this.dataManager.getDirectory(), "data"), "advancements"));
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user