mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-06 02:42:34 +01:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 7f7e7d2b522b9b5bb608b5c0c858b9624437b2de Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 218c0424..951d1832 100644
|
|
--- 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
|
|
|