summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2016-03-02 22:25:35 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2016-03-02 22:25:35 +0000
commit978ceb7a3e85250fede77c9f7ab7699e46aa424b (patch)
tree715059f749a931930808910f7cd794e4da3350ee
parent8447e4f3edbd76a07b53da249d11a1ce7af42c7a (diff)
downloadcraftbukkit-978ceb7a3e85250fede77c9f7ab7699e46aa424b.tar
craftbukkit-978ceb7a3e85250fede77c9f7ab7699e46aa424b.tar.gz
craftbukkit-978ceb7a3e85250fede77c9f7ab7699e46aa424b.tar.lz
craftbukkit-978ceb7a3e85250fede77c9f7ab7699e46aa424b.tar.xz
craftbukkit-978ceb7a3e85250fede77c9f7ab7699e46aa424b.zip
SPIGOT-1632: Fix a bug in EnderDragonBattle which prevented respawning the dragon in some cases
-rw-r--r--nms-patches/EnderDragonBattle.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/nms-patches/EnderDragonBattle.patch b/nms-patches/EnderDragonBattle.patch
new file mode 100644
index 00000000..fda6fe13
--- /dev/null
+++ b/nms-patches/EnderDragonBattle.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/server/EnderDragonBattle.java
++++ b/net/minecraft/server/EnderDragonBattle.java
+@@ -247,7 +247,7 @@
+ ShapeDetector.ShapeDetectorCollection shapedetector_shapedetectorcollection = this.f.a(this.d, tileentity.getPosition());
+
+ if (shapedetector_shapedetectorcollection != null) {
+- BlockPosition blockposition = shapedetector_shapedetectorcollection.a(3, 3, 4).getPosition();
++ BlockPosition blockposition = shapedetector_shapedetectorcollection.a(3, 3, 3).getPosition(); // CraftBukkit - 4 -> 3
+
+ if (this.o == null && blockposition.getX() == 0 && blockposition.getZ() == 0) {
+ this.o = blockposition;
+@@ -267,7 +267,7 @@
+
+ if (shapedetector_shapedetectorcollection1 != null) {
+ if (this.o == null) {
+- this.o = shapedetector_shapedetectorcollection1.a(3, 3, 4).getPosition();
++ this.o = shapedetector_shapedetectorcollection1.a(3, 3, 3).getPosition(); // CraftBukkit - 4 -> 3
+ }
+
+ return shapedetector_shapedetectorcollection1;