mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 00:20:44 +01:00
Toggle for removing existing dragon
This commit is contained in:
parent
8bac10ce5e
commit
c8ba4fb789
1 changed files with 5 additions and 2 deletions
|
@ -23,9 +23,12 @@
|
|||
this.gateways.addAll((Collection) data.gateways.orElseGet(() -> {
|
||||
ObjectArrayList<Integer> objectarraylist = new ObjectArrayList(ContiguousSet.create(Range.closedOpen(0, 20), DiscreteDomain.integers()));
|
||||
|
||||
@@ -208,7 +214,7 @@
|
||||
@@ -206,9 +212,9 @@
|
||||
this.dragonUUID = entityenderdragon.getUUID();
|
||||
EndDragonFight.LOGGER.info("Found that there's a dragon still alive ({})", entityenderdragon);
|
||||
this.dragonKilled = false;
|
||||
if (!flag) {
|
||||
- if (!flag) {
|
||||
+ if (!flag && this.level.paperConfig().entities.behavior.shouldRemoveDragon) { // Paper - Toggle for removing existing dragon
|
||||
EndDragonFight.LOGGER.info("But we didn't have a portal, let's remove it.");
|
||||
- entityenderdragon.discard();
|
||||
+ entityenderdragon.discard(null); // CraftBukkit - add Bukkit remove cause
|
||||
|
|
Loading…
Reference in a new issue