From 33411ec0a100aac6ec682b7bf5eb323b7054597f Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Sat, 28 Dec 2024 00:21:27 +0100 Subject: [PATCH] Properly remove UnsafeValues#getDamageEffect --- .../java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java index 5f6d67b0ee..3275045142 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java @@ -480,12 +480,6 @@ public final class CraftMagicNumbers implements UnsafeValues { return new CraftPotionType(namespacedKey, potionRegistry); } - @Override - public DamageEffect getDamageEffect(String key) { - Preconditions.checkArgument(key != null, "key cannot be null"); - return CraftDamageEffect.getById(key); - } - @Override public DamageSource.Builder createDamageSourceBuilder(DamageType damageType) { return new CraftDamageSourceBuilder(damageType);