aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0249-PreSpawnerSpawnEvent.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
committerNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
commitc0a3d51ab35930e410fcd9752ceaff6c3f581c24 (patch)
treef53076a8b0787d2f544f73f468df94619e5eb1a5 /patches/server/0249-PreSpawnerSpawnEvent.patch
parentda7138233f6392e791d790d1c3407414c855f9c2 (diff)
downloadPaper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.tar.gz
Paper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.zip
Start update, apply API patches
Diffstat (limited to 'patches/server/0249-PreSpawnerSpawnEvent.patch')
-rw-r--r--patches/server/0249-PreSpawnerSpawnEvent.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/patches/server/0249-PreSpawnerSpawnEvent.patch b/patches/server/0249-PreSpawnerSpawnEvent.patch
deleted file mode 100644
index d10c136bb8..0000000000
--- a/patches/server/0249-PreSpawnerSpawnEvent.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Phoenix616 <[email protected]>
-Date: Tue, 18 Sep 2018 23:53:23 +0100
-Subject: [PATCH] PreSpawnerSpawnEvent
-
-This adds a separate event before an entity is spawned by a spawner
-which contains the location of the spawner too similarly to how the
-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 bb3f3bec350dda43dbf5eda0a8c8057a413694b2..261de9ea37d22023da6a306b58b1b62a54dc03da 100644
---- a/src/main/java/net/minecraft/world/level/BaseSpawner.java
-+++ b/src/main/java/net/minecraft/world/level/BaseSpawner.java
-@@ -133,10 +133,10 @@ public abstract class BaseSpawner {
- continue;
- }
- // Paper start - PreCreatureSpawnEvent
-- com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent event = new com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent(
-+ com.destroystokyo.paper.event.entity.PreSpawnerSpawnEvent event = new com.destroystokyo.paper.event.entity.PreSpawnerSpawnEvent(
- io.papermc.paper.util.MCUtil.toLocation(world, d0, d1, d2),
- org.bukkit.craftbukkit.entity.CraftEntityType.minecraftToBukkit(optional.get()),
-- org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER
-+ io.papermc.paper.util.MCUtil.toLocation(world, pos)
- );
- if (!event.callEvent()) {
- flag = true;