generated from isXander/FabricKotlinTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes MC-105068 closes #241 * This actually doesnt matter
- Loading branch information
1 parent
c63cccb
commit 6663f93
Showing
5 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/client/java/dev/isxander/debugify/client/mixins/basic/mc105068/LivingEntityMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package dev.isxander.debugify.client.mixins.basic.mc105068; | ||
|
||
import com.llamalad7.mixinextras.injector.WrapWithCondition; | ||
import dev.isxander.debugify.fixes.BugFix; | ||
import dev.isxander.debugify.fixes.FixCategory; | ||
import net.minecraft.sounds.SoundEvent; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.level.Level; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@BugFix(id = "MC-105068", category = FixCategory.BASIC, env = BugFix.Env.CLIENT) | ||
@Mixin(LivingEntity.class) | ||
public abstract class LivingEntityMixin extends Entity { | ||
public LivingEntityMixin(EntityType<?> variant, Level world) { | ||
super(variant, world); | ||
} | ||
|
||
@WrapWithCondition(method = "handleEntityEvent", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;playSound(Lnet/minecraft/sounds/SoundEvent;FF)V")) | ||
private boolean beforeCond30(LivingEntity instance, SoundEvent soundEvent, float f, float v) { | ||
level().playLocalSound(getX(), getY(), getZ(), soundEvent, getSoundSource(), f, v, false); | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters