Removed redundant _effect enchanteffect suffix

This commit is contained in:
patience 2026-02-22 00:17:00 +00:00
parent dffdb168ac
commit 72e7e24693
No known key found for this signature in database

View file

@ -15,8 +15,8 @@ import xyz.nearmisses.patience.mc_rebalance.enchantment.effect.WindupEffect;
public class ModEnchantments { public class ModEnchantments {
public static final ResourceKey<Enchantment> Windup = of("windup"); public static final ResourceKey<Enchantment> Windup = of("windup");
public static MapCodec<WindupEffect> Effect_Windup = register("windup_effect", WindupEffect.CODEC); public static MapCodec<WindupEffect> Effect_Windup = register("windup", WindupEffect.CODEC);
public static MapCodec<SmackEffect> Effect_Smack = register("smack_effect", SmackEffect.CODEC); public static MapCodec<SmackEffect> Effect_Smack = register("smack", SmackEffect.CODEC);
private static ResourceKey<Enchantment> of(String path) { private static ResourceKey<Enchantment> of(String path) {
ResourceLocation id = ResourceLocation.fromNamespaceAndPath(MCRebalance.MOD_ID, path); ResourceLocation id = ResourceLocation.fromNamespaceAndPath(MCRebalance.MOD_ID, path);