Skip to content

Commit

Permalink
Clean assets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Jan 2, 2024
1 parent 65c17c8 commit 8ebb896
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public abstract class MixinPlayerEntity extends LivingEntity {
private static final EntityDimensions viaFabricPlus$sneaking_dimensions_v1_13_2 = EntityDimensions.changing(0.6f, 1.65f);

@Unique
private static final SoundEvent viaFabricPlus$random_hurt = SoundEvent.of(new Identifier("viafabricplus", "random.hurt"));
private static final SoundEvent viaFabricPlus$oof_hurt = SoundEvent.of(new Identifier("viafabricplus", "oof.hurt"));

@Unique
public boolean viaFabricPlus$isSprinting;
Expand Down Expand Up @@ -180,7 +180,7 @@ private void removeAttackCooldown(CallbackInfoReturnable<Float> ci) {
@Inject(method = "getHurtSound", at = @At("HEAD"), cancellable = true)
private void replaceSound(DamageSource source, CallbackInfoReturnable<SoundEvent> cir) {
if (VisualSettings.global().replaceHurtSoundWithOOFSound.isEnabled()) {
cir.setReturnValue(viaFabricPlus$random_hurt);
cir.setReturnValue(viaFabricPlus$oof_hurt);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/viafabricplus/sounds.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"random.hurt": {
"oof.hurt": {
"sounds": [
"viafabricplus:random/hurt"
"viafabricplus:oof_hurt"
]
}
}

0 comments on commit 8ebb896

Please sign in to comment.