mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-21 23:33:48 -07:00
Correctly construct StructureManager
This commit is contained in:
@@ -204,12 +204,14 @@
|
|||||||
chunkGenerator,
|
chunkGenerator,
|
||||||
this.chunkSource.randomState(),
|
this.chunkSource.randomState(),
|
||||||
this,
|
this,
|
||||||
@@ -281,8 +_,8 @@
|
@@ -280,9 +_,9 @@
|
||||||
|
seed,
|
||||||
fixerUpper
|
fixerUpper
|
||||||
);
|
);
|
||||||
this.structureManager = new StructureManager(this, server.getWorldData().worldGenOptions(), this.structureCheck);
|
- this.structureManager = new StructureManager(this, server.getWorldData().worldGenOptions(), this.structureCheck);
|
||||||
- if (this.dimension() == Level.END && this.dimensionTypeRegistration().is(BuiltinDimensionTypes.END)) {
|
- if (this.dimension() == Level.END && this.dimensionTypeRegistration().is(BuiltinDimensionTypes.END)) {
|
||||||
- this.dragonFight = new EndDragonFight(this, seed, server.getWorldData().endDragonFightData());
|
- this.dragonFight = new EndDragonFight(this, seed, server.getWorldData().endDragonFightData());
|
||||||
|
+ this.structureManager = new StructureManager(this, this.serverLevelData.worldGenOptions(), this.structureCheck); // CraftBukkit
|
||||||
+ if (this.dimension() == Level.END && this.dimensionTypeRegistration().is(BuiltinDimensionTypes.END) || env == org.bukkit.World.Environment.THE_END) { // CraftBukkit - Allow to create EnderDragonBattle in default and custom END
|
+ if (this.dimension() == Level.END && this.dimensionTypeRegistration().is(BuiltinDimensionTypes.END) || env == org.bukkit.World.Environment.THE_END) { // CraftBukkit - Allow to create EnderDragonBattle in default and custom END
|
||||||
+ this.dragonFight = new EndDragonFight(this, this.serverLevelData.worldGenOptions().seed(), this.serverLevelData.endDragonFightData()); // CraftBukkit
|
+ this.dragonFight = new EndDragonFight(this, this.serverLevelData.worldGenOptions().seed(), this.serverLevelData.endDragonFightData()); // CraftBukkit
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user