Skip to content

Commit

Permalink
Legacy Filch Lizard Sounds config option
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Aug 23, 2024
1 parent e3457f6 commit 016881c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/drzhark/mocreatures/proxy/MoCProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 016881c

Please sign in to comment.