2020-06-23 01:09:14 +02:00
|
|
|
From dac14e3af291c353cda1f3e849a6babc7997b3a6 Mon Sep 17 00:00:00 2001
|
2020-02-26 20:12:29 +01:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Wed, 1 Jun 2016 23:29:17 -0400
|
|
|
|
Subject: [PATCH] EMC Reset Ender Crystals on Dragon Spawn
|
|
|
|
|
|
|
|
---
|
|
|
|
src/main/java/net/minecraft/server/EnderDragonBattle.java | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EnderDragonBattle.java b/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
2020-06-16 16:46:05 +02:00
|
|
|
index 687efa022..2617a6c0d 100644
|
2020-02-26 20:12:29 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EnderDragonBattle.java
|
|
|
|
@@ -403,6 +403,7 @@ public class EnderDragonBattle {
|
|
|
|
entityenderdragon.setPositionRotation(0.0D, 128.0D, 0.0D, this.d.random.nextFloat() * 360.0F, 0.0F);
|
|
|
|
this.d.addEntity(entityenderdragon);
|
|
|
|
this.m = entityenderdragon.getUniqueID();
|
|
|
|
+ this.resetCrystals(); // EMC
|
|
|
|
return entityenderdragon;
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -506,6 +507,7 @@ public class EnderDragonBattle {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
+ private void resetCrystals() { this.f(); } // EMC // OBF HELPER
|
|
|
|
public void f() {
|
|
|
|
Iterator iterator = WorldGenEnder.a((GeneratorAccess) this.d).iterator();
|
|
|
|
|
|
|
|
--
|
|
|
|
2.25.1.windows.1
|
|
|
|
|