mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 09:27:43 +01:00
Move more options to per-world section (still more to come)
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
From 8cd2f55a5d205378ff704811df327682f4cd1546 Mon Sep 17 00:00:00 2001
|
||||
From 8b10da757f42d39ad07a17029d7f57173a9238da Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sat, 19 Oct 2019 03:53:54 -0500
|
||||
Subject: [PATCH] Add back EntityCreatePortalEvent for EnderDragon
|
||||
|
||||
---
|
||||
.../minecraft/server/EnderDragonBattle.java | 57 ++++++++++++++++---
|
||||
1 file changed, 49 insertions(+), 8 deletions(-)
|
||||
.../minecraft/server/EnderDragonBattle.java | 55 ++++++++++++++++---
|
||||
1 file changed, 48 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EnderDragonBattle.java b/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
||||
index cfc059c00f..a2cb2693a4 100644
|
||||
index a2dfdc23f1..935d73f822 100644
|
||||
--- a/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
||||
+++ b/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
||||
@@ -21,8 +21,8 @@ public class EnderDragonBattle {
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
@@ -22,7 +22,7 @@ public class EnderDragonBattle {
|
||||
private static final Predicate<Entity> b = IEntitySelector.a.and(IEntitySelector.a(0.0D, 128.0D, 0.0D, 192.0D));
|
||||
public final BossBattleServer bossBattle;
|
||||
- private final WorldServer d;
|
||||
private final WorldServer d; public WorldServer getWorld() { return d; } // Purpur - OBFHELPER
|
||||
- private final List<Integer> e;
|
||||
+ private final WorldServer d; public WorldServer getWorld() { return d; } // Purpur - OBFHELPER
|
||||
+ private final List<Integer> e; public List<Integer> getGateways() { return e; } // Purpur - OBFHELPER
|
||||
private final ShapeDetector f;
|
||||
private int g;
|
||||
@@ -30,7 +28,7 @@ index cfc059c00f..a2cb2693a4 100644
|
||||
- this.n();
|
||||
+ spawnExitPortal(entityenderdragon); // Purpur
|
||||
+ spawnGateway(entityenderdragon); // Purpur
|
||||
if (net.pl3x.purpur.PurpurConfig.enderDragonAlwaysDropsEggBlock || !this.l) { // Purpur - always place dragon egg
|
||||
if (getWorld().purpurConfig.enderDragonAlwaysDropsEggBlock || !this.l) { // Purpur - always place dragon egg
|
||||
this.d.setTypeUpdate(this.d.getHighestBlockYAt(HeightMap.Type.MOTION_BLOCKING, WorldGenEndTrophy.a), Blocks.DRAGON_EGG.getBlockData());
|
||||
}
|
||||
@@ -368,21 +368,62 @@ public class EnderDragonBattle {
|
||||
@@ -101,5 +99,5 @@ index cfc059c00f..a2cb2693a4 100644
|
||||
WorldGenEndTrophy worldgenendtrophy = new WorldGenEndTrophy(flag);
|
||||
|
||||
--
|
||||
2.24.0.rc1
|
||||
2.24.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user