mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 4adfecc557917b0a5a882974f098d6f5fc635c05 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 | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Raid.java b/src/main/java/net/minecraft/server/Raid.java
|
|
index ba19b1d51..1484f39f1 100644
|
|
--- a/src/main/java/net/minecraft/server/Raid.java
|
|
+++ b/src/main/java/net/minecraft/server/Raid.java
|
|
@@ -2,6 +2,8 @@ package net.minecraft.server;
|
|
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Sets;
|
|
+import org.bukkit.event.entity.CreatureSpawnEvent;
|
|
+
|
|
import java.util.Comparator;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
@@ -512,7 +514,7 @@ public class Raid {
|
|
entityraider.prepare(this.l, this.l.getDamageScaler(blockposition), EnumMobSpawn.EVENT, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
entityraider.a(i, false);
|
|
entityraider.onGround = true;
|
|
- this.l.addEntity(entityraider);
|
|
+ this.l.addEntity(entityraider, CreatureSpawnEvent.SpawnReason.VILLAGE_RAID); // Purpur
|
|
}
|
|
}
|
|
|
|
--
|
|
2.20.1
|
|
|