Update to Minecraft 1.20.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-09-22 02:40:00 +10:00
parent 193398c0ff
commit 8a3c8cfcd4
238 changed files with 2448 additions and 2344 deletions

View File

@@ -17,7 +17,7 @@
this.gateways.addAll((Collection) enderdragonbattle_a.gateways.orElseGet(() -> {
ObjectArrayList<Integer> objectarraylist = new ObjectArrayList(ContiguousSet.create(Range.closedOpen(0, 20), DiscreteDomain.integers()));
@@ -505,7 +505,7 @@
@@ -510,7 +510,7 @@
return this.previouslyKilled;
}
@@ -26,7 +26,7 @@
if (this.dragonKilled && this.respawnStage == null) {
BlockPosition blockposition = this.portalLocation;
@@ -532,19 +532,19 @@
@@ -537,19 +537,19 @@
List<EntityEnderCrystal> list1 = this.level.getEntitiesOfClass(EntityEnderCrystal.class, new AxisAlignedBB(blockposition1.relative(enumdirection, 2)));
if (list1.isEmpty()) {
@@ -45,12 +45,12 @@
+ return false; // CraftBukkit - return value
}
- private void respawnDragon(List<EntityEnderCrystal> list) {
+ public boolean respawnDragon(List<EntityEnderCrystal> list) { // PAIL private -> public // CraftBukkit - return boolean
- public void respawnDragon(List<EntityEnderCrystal> list) {
+ public boolean respawnDragon(List<EntityEnderCrystal> list) { // CraftBukkit - return boolean
if (this.dragonKilled && this.respawnStage == null) {
for (ShapeDetector.ShapeDetectorCollection shapedetector_shapedetectorcollection = this.findExitPortal(); shapedetector_shapedetectorcollection != null; shapedetector_shapedetectorcollection = this.findExitPortal()) {
for (int i = 0; i < this.exitPortalPattern.getWidth(); ++i) {
@@ -564,8 +564,9 @@
@@ -569,8 +569,9 @@
this.respawnTime = 0;
this.spawnExitPortal(false);
this.respawnCrystals = list;