mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: 9fe63a16 Update to 1.14.4 (#2333)
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 3db95c119f25660486d19e952c5404130ffa6d2c 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 f7c10f0ac1..03be050640 100644
|
|
--- a/src/main/java/net/minecraft/server/Raid.java
|
|
+++ b/src/main/java/net/minecraft/server/Raid.java
|
|
@@ -513,7 +513,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.20.1
|
|
|