mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 08:57:44 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: c9fd7458 Updated Upstream (Bukkit/CraftBukkit/Spigot)
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From eb60a54d282def5c1f1dc58fc32cd43c0441aee0 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Wed, 29 May 2019 23:39:04 -0500
|
|
Subject: [PATCH] Add village raid spawn reason
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/Raid.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Raid.java b/src/main/java/net/minecraft/server/Raid.java
|
|
index bdcacc141..723bb35ce 100644
|
|
--- a/src/main/java/net/minecraft/server/Raid.java
|
|
+++ b/src/main/java/net/minecraft/server/Raid.java
|
|
@@ -536,7 +536,7 @@ public class Raid {
|
|
entityraider.prepare(this.k, this.k.getDamageScaler(blockposition), EnumMobSpawn.EVENT, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
entityraider.a(i, false);
|
|
entityraider.onGround = true;
|
|
- this.k.addEntity(entityraider);
|
|
+ this.k.addEntity(entityraider, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_RAID); // Purpur
|
|
}
|
|
}
|
|
|
|
--
|
|
2.23.0.rc1
|
|
|