diff --git a/src/main/java/io/ix0rai/rainglow/mixin/DyeItemMixin.java b/src/main/java/io/ix0rai/rainglow/mixin/DyeItemMixin.java index 36be191..95e8bc3 100644 --- a/src/main/java/io/ix0rai/rainglow/mixin/DyeItemMixin.java +++ b/src/main/java/io/ix0rai/rainglow/mixin/DyeItemMixin.java @@ -27,6 +27,7 @@ private void useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity RainglowEntity entityType = RainglowEntity.get(entity); if (entityType != null && !Rainglow.colourUnloaded(entityType, colour) + && Rainglow.CONFIG.isEntityEnabled(entityType) && !Rainglow.getColour(entityType, entity.getDataTracker(), entity.getWorld().getRandom()).getId().equals(colour)) { entity.getWorld().playSoundFromEntity(user, entity, SoundEvents.BLOCK_AMETHYST_CLUSTER_BREAK, SoundCategory.PLAYERS, 5.0f, 1.0f); if (!user.getWorld().isClient()) {