aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0264-PreSpawnerSpawnEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0264-PreSpawnerSpawnEvent.patch')
-rw-r--r--patches/server/0264-PreSpawnerSpawnEvent.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0264-PreSpawnerSpawnEvent.patch b/patches/server/0264-PreSpawnerSpawnEvent.patch
index f9634b126c..c7e6f02b9b 100644
--- a/patches/server/0264-PreSpawnerSpawnEvent.patch
+++ b/patches/server/0264-PreSpawnerSpawnEvent.patch
@@ -9,12 +9,12 @@ SpawnerSpawnEvent gets called instead of the CreatureSpawnEvent for
spawners.
diff --git a/src/main/java/net/minecraft/world/level/BaseSpawner.java b/src/main/java/net/minecraft/world/level/BaseSpawner.java
-index fc7719d12b5f6011aec2e41a36b4bacd77672b6d..a9be524edb03c51300bc45d424fcf87c7491a8c0 100644
+index a53b16b7bc640acfc2c8a5a86ad177d9c076d7b3..0af2d9420ec6c454970ac89b74676585010d11e9 100644
--- a/src/main/java/net/minecraft/world/level/BaseSpawner.java
+++ b/src/main/java/net/minecraft/world/level/BaseSpawner.java
-@@ -134,11 +134,11 @@ public abstract class BaseSpawner {
-
- org.bukkit.entity.EntityType type = org.bukkit.entity.EntityType.fromName(key);
+@@ -131,11 +131,11 @@ public abstract class BaseSpawner {
+ // Paper start
+ org.bukkit.entity.EntityType<?> type = org.bukkit.craftbukkit.entity.CraftEntityType.minecraftToBukkit(optional.get());
if (type != null) {
- com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent event;
- event = new com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent(