Update to Minecraft 1.16.1

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-06-25 10:00:00 +10:00
parent 3862d2811e
commit 50503fd516
424 changed files with 5960 additions and 5636 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/Raid.java
+++ b/net/minecraft/server/Raid.java
@@ -114,6 +114,12 @@
@@ -111,6 +111,12 @@
return this.status == Raid.Status.LOSS;
}
@@ -13,7 +13,7 @@
public World getWorld() {
return this.world;
}
@@ -189,6 +195,7 @@
@@ -186,6 +192,7 @@
this.active = this.world.isLoaded(this.center);
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL) {
@@ -21,7 +21,7 @@
this.stop();
return;
}
@@ -208,13 +215,16 @@
@@ -205,13 +212,16 @@
if (!this.world.b_(this.center)) {
if (this.groupsSpawned > 0) {
this.status = Raid.Status.LOSS;
@@ -38,7 +38,7 @@
this.stop();
return;
}
@@ -288,6 +298,7 @@
@@ -285,6 +295,7 @@
}
if (j > 3) {
@@ -46,7 +46,7 @@
this.stop();
break;
}
@@ -300,6 +311,7 @@
@@ -297,6 +308,7 @@
this.status = Raid.Status.VICTORY;
Iterator iterator = this.heroes.iterator();
@@ -54,7 +54,7 @@
while (iterator.hasNext()) {
UUID uuid = (UUID) iterator.next();
Entity entity = this.world.getEntity(uuid);
@@ -313,9 +325,11 @@
@@ -310,9 +322,11 @@
entityplayer.a(StatisticList.RAID_WIN);
CriterionTriggers.H.a(entityplayer);
@@ -66,7 +66,7 @@
}
}
@@ -323,6 +337,7 @@
@@ -320,6 +334,7 @@
} else if (this.a()) {
++this.x;
if (this.x >= 600) {
@@ -74,7 +74,7 @@
this.stop();
return;
}
@@ -457,6 +472,10 @@
@@ -454,6 +469,10 @@
Raid.Wave[] araid_wave = Raid.Wave.f;
int j = araid_wave.length;
@@ -85,7 +85,7 @@
for (int k = 0; k < j; ++k) {
Raid.Wave raid_wave = araid_wave[k];
int l = this.a(raid_wave, i, flag1) + this.a(raid_wave, this.random, i, difficultydamagescaler, flag1);
@@ -469,9 +488,11 @@
@@ -466,9 +485,11 @@
entityraider.setPatrolLeader(true);
this.a(i, entityraider);
flag = true;
@@ -97,7 +97,7 @@
if (raid_wave.g == EntityTypes.RAVAGER) {
EntityRaider entityraider1 = null;
@@ -490,6 +511,7 @@
@@ -487,6 +508,7 @@
this.a(i, entityraider1, blockposition, false);
entityraider1.setPositionRotation(blockposition, 0.0F, 0.0F);
entityraider1.startRiding(entityraider);
@@ -105,7 +105,7 @@
}
}
}
@@ -499,6 +521,7 @@
@@ -496,6 +518,7 @@
++this.groupsSpawned;
this.updateProgress();
this.H();
@@ -113,16 +113,16 @@
}
public void a(int i, EntityRaider entityraider, @Nullable BlockPosition blockposition, boolean flag) {
@@ -514,7 +537,7 @@
@@ -511,7 +534,7 @@
entityraider.prepare(this.world, this.world.getDamageScaler(blockposition), EnumMobSpawn.EVENT, (GroupDataEntity) null, (NBTTagCompound) null);
entityraider.a(i, false);
entityraider.onGround = true;
entityraider.c(true);
- this.world.addEntity(entityraider);
+ this.world.addEntity(entityraider, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.RAID); // CraftBukkit
}
}
@@ -760,6 +783,12 @@
@@ -756,6 +779,12 @@
this.heroes.add(entity.getUniqueID());
}