From 3795e11ff537cf6af06cff6274ca86b2f03921e0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 1 Oct 2024 19:46:21 +0100 Subject: [PATCH] Fix errors --- src/main/java/com/minelittlepony/unicopia/entity/Living.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/Living.java b/src/main/java/com/minelittlepony/unicopia/entity/Living.java index 55ed1370..48680ca1 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/Living.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/Living.java @@ -386,13 +386,13 @@ public abstract class Living implements Equine, Caste ItemStack glasses = GlassesItem.getForEntity(entity).stack(); BreaksIntoItemComponent afterBroken = glasses.get(UDataComponentTypes.ITEM_AFTER_BREAKING); - if (afterBroken != null && afterBroken.damageType().contains(magical.getTypeRegistryEntry())) { + if (afterBroken != null && magical.isIn(afterBroken.damageType())) { if (afterBroken != null) { afterBroken.getItemAfterBreaking().ifPresent(b -> { ItemStack broken = glasses.withItem(b); TrinketsDelegate.getInstance(entity).setEquippedStack(entity, TrinketsDelegate.FACE, broken); afterBroken.getBreakingSound().ifPresent(sound -> { - playSound(USounds.ITEM_SUNGLASSES_SHATTER, 1, 1); + playSound(sound, 1, 1); }); }); }