mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-08-24 23:03:00 +02:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 2f7775f215dfaa838a8f0291df085f0170d52616 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 687efa022..2617a6c0d 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
|
|
|