From c604cac551112326dd5e07a1e99326647ac4c303 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 2 May 2024 21:26:08 +1000 Subject: [PATCH] SPIGOT-7652: Remove remap for SPELL_MOB_AMBIENT which no longer exists By: md_5 --- .../java/org/bukkit/craftbukkit/legacy/FieldRename.java | 1 - .../main/java/org/bukkit/craftbukkit/util/Commodore.java | 8 -------- 2 files changed, 9 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/FieldRename.java b/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/FieldRename.java index af0118935d..c35257b9bd 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/FieldRename.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/legacy/FieldRename.java @@ -275,7 +275,6 @@ public class FieldRename { .change("SPELL", "EFFECT") .change("SPELL_INSTANT", "INSTANT_EFFECT") .change("SPELL_MOB", "ENTITY_EFFECT") - .change("SPELL_MOB_AMBIENT", "AMBIENT_ENTITY_EFFECT") .change("SPELL_WITCH", "WITCH") .change("DRIP_WATER", "DRIPPING_WATER") .change("DRIP_LAVA", "DRIPPING_LAVA") diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java index b59b9897b9..227ae3d504 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/Commodore.java @@ -271,14 +271,6 @@ public class Commodore { } } - if (owner.equals("org/bukkit/Particle")) { - switch (name) { - case "SPELL_MOB_AMBIENT": - super.visitFieldInsn(opcode, owner, "SPELL_MOB", desc); - return; - } - } - super.visitFieldInsn(opcode, owner, name, desc); }