mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
SPIGOT-1632: Fix a bug in EnderDragonBattle which prevented respawning the dragon in some cases
This commit is contained in:
parent
8447e4f3ed
commit
978ceb7a3e
20
nms-patches/EnderDragonBattle.patch
Normal file
20
nms-patches/EnderDragonBattle.patch
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user