From 016881c5700b71f9e9446c383b08bea756474379 Mon Sep 17 00:00:00 2001 From: Me <135455255+IcarussOne@users.noreply.github.com> Date: Thu, 22 Aug 2024 21:01:19 -0500 Subject: [PATCH] Legacy Filch Lizard Sounds config option --- .../mocreatures/entity/passive/MoCEntityFilchLizard.java | 4 ++-- src/main/java/drzhark/mocreatures/proxy/MoCProxy.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/drzhark/mocreatures/entity/passive/MoCEntityFilchLizard.java b/src/main/java/drzhark/mocreatures/entity/passive/MoCEntityFilchLizard.java index fe4461692..350845441 100644 --- a/src/main/java/drzhark/mocreatures/entity/passive/MoCEntityFilchLizard.java +++ b/src/main/java/drzhark/mocreatures/entity/passive/MoCEntityFilchLizard.java @@ -201,12 +201,12 @@ public ItemStack[] getCustomLootItems(Entity entityIn, ResourceLocation resource @Override protected SoundEvent getDeathSound() { - return MoCSoundEvents.ENTITY_FILCH_LIZARD_DEATH; + return MoCreatures.proxy.legacyFilchLizardSounds ? SoundEvents.ENTITY_GENERIC_HURT : MoCSoundEvents.ENTITY_FILCH_LIZARD_DEATH; } @Override protected SoundEvent getHurtSound(DamageSource source) { - return MoCSoundEvents.ENTITY_FILCH_LIZARD_HISS; + return MoCreatures.proxy.legacyFilchLizardSounds ? SoundEvents.ENTITY_GENERIC_HURT : MoCSoundEvents.ENTITY_FILCH_LIZARD_HISS; } // Sneaky... diff --git a/src/main/java/drzhark/mocreatures/proxy/MoCProxy.java b/src/main/java/drzhark/mocreatures/proxy/MoCProxy.java index 7e3abeb27..5786b2636 100644 --- a/src/main/java/drzhark/mocreatures/proxy/MoCProxy.java +++ b/src/main/java/drzhark/mocreatures/proxy/MoCProxy.java @@ -66,6 +66,7 @@ public class MoCProxy implements IGuiHandler { public boolean legacyBigGolemSounds; public boolean legacyBunnyTextures; public boolean legacyDuckSounds; + public boolean legacyFilchLizardSounds; public boolean legacyMiniGolemSounds; public boolean legacyRatDeathSound; public boolean legacySharkModel; @@ -288,6 +289,7 @@ public void readGlobalConfigValues() { this.legacyBigGolemSounds = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyBigGolemSounds", false, "Enables legacy big golem sounds.").getBoolean(false); this.legacyBunnyTextures = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyBunnyTextures", false, "Enables simple bunny textures like in legacy versions.").getBoolean(false); this.legacyDuckSounds = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyDuckSounds", false, "Enables legacy duck sounds.").getBoolean(false); + this.legacyFilchLizardSounds = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyFilchLizardSounds", false, "Enables generic hurt sounds rather than hissing for the filch lizards.").getBoolean(false); this.legacyMiniGolemSounds = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyMiniGolemSounds", false, "Enables legacy mini golem sounds.").getBoolean(false); this.legacyRatDeathSound = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacyRatDeathSound", false, "Enables legacy rat death sound.").getBoolean(false); this.legacySharkModel = this.mocSettingsConfig.get(CATEGORY_MOC_CREATURE_GENERAL_SETTINGS, "LegacySharkModel", false, "Enables the simple shark model and texture like in legacy versions.").getBoolean(false);