mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-01-19 06:31:22 +01:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From fd14f5382adf6ac8b3a7c9c437ab583c01be6a39 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 687efa022d..2617a6c0d9 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
|
|
|