mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
Updated Upstream (CraftBukkit)
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing CraftBukkit Changes:c6997924
SPIGOT-5110: Zombies converting to drowned too quickly0c575603
SPIGOT-5101: Raids crash
This commit is contained in:
parent
1019a87c2c
commit
a51823a732
@ -1,4 +1,4 @@
|
||||
From 240ff9ec9465aa5cd5827052356565df8f7fc3a8 Mon Sep 17 00:00:00 2001
|
||||
From 6dda64d42044db4abc7f9934dd4ef25658307e63 Mon Sep 17 00:00:00 2001
|
||||
From: Anthony MacAllister <anthonymmacallister@gmail.com>
|
||||
Date: Thu, 26 Jul 2018 15:30:03 -0400
|
||||
Subject: [PATCH] EntityTransformedEvent
|
||||
@ -29,10 +29,10 @@ index 9311cc5bd6..07f7b90f58 100644
|
||||
// CraftBukkit end
|
||||
this.die();
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
index 0f4e50c3fe..76cf1d8bfc 100644
|
||||
index 19eb72909a..5d93af5857 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
@@ -247,6 +247,7 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -248,6 +248,7 @@ public class EntityZombie extends EntityMonster {
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
@ -40,7 +40,7 @@ index 0f4e50c3fe..76cf1d8bfc 100644
|
||||
this.world.addEntity(entityzombie, CreatureSpawnEvent.SpawnReason.DROWNED); // CraftBukkit - added spawn reason
|
||||
this.die();
|
||||
}
|
||||
@@ -418,6 +419,7 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -419,6 +420,7 @@ public class EntityZombie extends EntityMonster {
|
||||
if (CraftEventFactory.callEntityTransformEvent(this, entityzombievillager, EntityTransformEvent.TransformReason.INFECTION).isCancelled()) {
|
||||
return;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
From a8474fcf734b5d80f37fd3f684dcfa6c293fceff Mon Sep 17 00:00:00 2001
|
||||
From ca7dafa82b1227e80fed8574ef53a475d9a1b238 Mon Sep 17 00:00:00 2001
|
||||
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
||||
Date: Sun, 7 Oct 2018 04:29:59 -0500
|
||||
Subject: [PATCH] Add more Zombie API
|
||||
@ -18,7 +18,7 @@ index 5e88367d3c..c73d2ff5da 100644
|
||||
byte b0 = (Byte) this.datawatcher.get(EntityInsentient.b);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
index 76cf1d8bfc..6e265467b0 100644
|
||||
index 5d93af5857..552bad0520 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
|
||||
@@ -31,6 +31,7 @@ public class EntityZombie extends EntityMonster {
|
||||
@ -37,7 +37,7 @@ index 76cf1d8bfc..6e265467b0 100644
|
||||
public boolean isDrownConverting() {
|
||||
return (Boolean) this.getDataWatcher().get(EntityZombie.DROWN_CONVERTING);
|
||||
}
|
||||
@@ -209,6 +211,13 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -210,6 +212,13 @@ public class EntityZombie extends EntityMonster {
|
||||
this.getDataWatcher().set(EntityZombie.DROWN_CONVERTING, true);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ index 76cf1d8bfc..6e265467b0 100644
|
||||
protected void eb() {
|
||||
this.b(EntityTypes.DROWNED);
|
||||
this.world.a((EntityHuman) null, 1040, new BlockPosition(this), 0);
|
||||
@@ -253,10 +262,17 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -254,10 +263,17 @@ public class EntityZombie extends EntityMonster {
|
||||
}
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ index 76cf1d8bfc..6e265467b0 100644
|
||||
@Override
|
||||
public boolean damageEntity(DamageSource damagesource, float f) {
|
||||
if (super.damageEntity(damagesource, f)) {
|
||||
@@ -374,6 +390,7 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -375,6 +391,7 @@ public class EntityZombie extends EntityMonster {
|
||||
nbttagcompound.setBoolean("CanBreakDoors", this.ee());
|
||||
nbttagcompound.setInt("InWaterTime", this.isInWater() ? this.bF : -1);
|
||||
nbttagcompound.setInt("DrownedConversionTime", this.isDrownConverting() ? this.drownedConversionTime : -1);
|
||||
@ -78,7 +78,7 @@ index 76cf1d8bfc..6e265467b0 100644
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -388,7 +405,11 @@ public class EntityZombie extends EntityMonster {
|
||||
@@ -389,7 +406,11 @@ public class EntityZombie extends EntityMonster {
|
||||
if (nbttagcompound.hasKeyOfType("DrownedConversionTime", 99) && nbttagcompound.getInt("DrownedConversionTime") > -1) {
|
||||
this.startDrownedConversion(nbttagcompound.getInt("DrownedConversionTime"));
|
||||
}
|
||||
|
@ -1,30 +0,0 @@
|
||||
From 96e47b61a7b56b3593c1fd8058c970ee09efb490 Mon Sep 17 00:00:00 2001
|
||||
From: Shane Freeder <theboyetronic@gmail.com>
|
||||
Date: Wed, 26 Jun 2019 03:04:45 +0100
|
||||
Subject: [PATCH] Fix Raids CME
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Raid.java b/src/main/java/net/minecraft/server/Raid.java
|
||||
index 6c1bbefd71..72f76d6c02 100644
|
||||
--- a/src/main/java/net/minecraft/server/Raid.java
|
||||
+++ b/src/main/java/net/minecraft/server/Raid.java
|
||||
@@ -137,14 +137,14 @@ public class Raid {
|
||||
private void y() {
|
||||
Collection<EntityPlayer> collection = this.r.getPlayers();
|
||||
Set<EntityPlayer> set = Sets.newHashSet(collection);
|
||||
- Iterator iterator = collection.iterator();
|
||||
+ Iterator iterator = set.iterator(); // Paper - use the set, this doesn't get modified out of scope
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
EntityPlayer entityplayer = (EntityPlayer) iterator.next();
|
||||
BlockPosition blockposition = new BlockPosition(entityplayer);
|
||||
|
||||
if (this.k.c_(blockposition) != this) {
|
||||
- set.remove(entityplayer);
|
||||
+ iterator.remove(); // Paper
|
||||
this.r.removePlayer(entityplayer);
|
||||
}
|
||||
}
|
||||
--
|
||||
2.22.0
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit e8b39d430a77c2e53656b4c7bc2ed4b4a2b48a00
|
||||
Subproject commit c69979247bdae6884d4edf377d485cf88ddfa0f5
|
Loading…
Reference in New Issue
Block a user