From 269c49d99e1ced9bbed68de71db43790991c8de9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 2 Mar 2016 22:25:35 +0000 Subject: [PATCH] SPIGOT-1632: Fix a bug in EnderDragonBattle which prevented respawning the dragon in some cases By: Thinkofdeath --- .../nms-patches/EnderDragonBattle.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 paper-server/nms-patches/EnderDragonBattle.patch diff --git a/paper-server/nms-patches/EnderDragonBattle.patch b/paper-server/nms-patches/EnderDragonBattle.patch new file mode 100644 index 000000000..fda6fe13a --- /dev/null +++ b/paper-server/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;