mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Update to 1.15
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From ba8da9b4384da86598467168816372d701a9ffcf Mon Sep 17 00:00:00 2001
|
||||
From d2c8b1879fd458f8cdc7a0679c9ce2ec2e3fb300 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Tue, 9 Jul 2019 20:56:47 -0500
|
||||
Subject: [PATCH] Fix pig zombies (MC-56653)
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] Fix pig zombies (MC-56653)
|
||||
2 files changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPigZombie.java b/src/main/java/net/minecraft/server/EntityPigZombie.java
|
||||
index 5760a1836..54ccc93f1 100644
|
||||
index 8d57c5f1b5..1c3be1c2c0 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPigZombie.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPigZombie.java
|
||||
@@ -139,6 +139,7 @@ public class EntityPigZombie extends EntityZombie {
|
||||
@@ -17,20 +17,20 @@ index 5760a1836..54ccc93f1 100644
|
||||
|
||||
if (result && entity instanceof EntityHuman && !((EntityHuman) entity).isCreative() && this.hasLineOfSight(entity)) {
|
||||
+ if (net.pl3x.purpur.PurpurConfig.pigmenDontTargetUnlessHit) this.setLastDamager((EntityHuman) entity); // Purpur - fix MC-56653
|
||||
this.a(entity);
|
||||
this.i((EntityLiving) entity);
|
||||
}
|
||||
|
||||
@@ -158,7 +159,7 @@ public class EntityPigZombie extends EntityZombie {
|
||||
@@ -157,7 +158,7 @@ public class EntityPigZombie extends EntityZombie {
|
||||
this.angerLevel = event.getNewAnger();
|
||||
// CraftBukkit end
|
||||
this.soundDelay = this.random.nextInt(40);
|
||||
if (entity instanceof EntityLiving) {
|
||||
- this.setLastDamager((EntityLiving) entity);
|
||||
+ if (!net.pl3x.purpur.PurpurConfig.pigmenDontTargetUnlessHit) this.setLastDamager((EntityLiving) entity); // Purpur - fix MC-56653
|
||||
}
|
||||
|
||||
- this.setLastDamager(entityliving);
|
||||
+ if (!net.pl3x.purpur.PurpurConfig.pigmenDontTargetUnlessHit) this.setLastDamager(entityliving); // Purpur - fix MC-56653
|
||||
return true;
|
||||
@@ -207,6 +208,12 @@ public class EntityPigZombie extends EntityZombie {
|
||||
return this.ef();
|
||||
}
|
||||
|
||||
@@ -204,6 +205,12 @@ public class EntityPigZombie extends EntityZombie {
|
||||
return this.eA();
|
||||
}
|
||||
|
||||
+ // Purpur start - fix MC-56653
|
||||
@@ -43,7 +43,7 @@ index 5760a1836..54ccc93f1 100644
|
||||
|
||||
public PathfinderGoalAnger(EntityPigZombie entitypigzombie) {
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
index f0ed3c974..8a875a576 100644
|
||||
index f0ed3c9749..8a875a5764 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
@@ -200,6 +200,11 @@ public class PurpurConfig {
|
||||
@@ -59,5 +59,5 @@ index f0ed3c974..8a875a576 100644
|
||||
public static boolean snowmanPumpkinPutBack = false;
|
||||
private static void snowmansSettings() {
|
||||
--
|
||||
2.23.0.rc1
|
||||
2.24.0.rc1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user