Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bugs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ patched 264285 server basic
patched 131562 server basic
patched 133218 server basic
patched 158900 server basic
patched 264204 server basic

previous 2025 17w47a
previous 53312 22w17a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright (C) 2026 The Debugify Contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
package dev.isxander.debugify.mixins.basic.mc264204;

import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.tags.TagKey;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.damagesource.DamageType;
import net.minecraft.world.entity.LivingEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@BugFix(
id = "MC-264204",
category = FixCategory.BASIC,
env = BugFix.Env.SERVER,
description = "Deaths caused by goat ramming are not tracked by advancements and statistics"
)
@Mixin(LivingEntity.class)
public abstract class LivingEntityMixin {
@WrapOperation(
method = "resolveMobResponsibleForDamage",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/damagesource/DamageSource;is(Lnet/minecraft/tags/TagKey;)Z",
ordinal = 0
)
)
private boolean skipNoAngerCheckForPlayer(
DamageSource source, TagKey<DamageType> tag, Operation<Boolean> original
) {
LivingEntity self = (LivingEntity) (Object) this;
if (self instanceof ServerPlayer) {
return false;
}
return original.call(source, tag);
}
}
1 change: 1 addition & 0 deletions src/main/resources/debugify.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"basic.mc232869.StriderMixin",
"basic.mc245394.RaidMixin",
"basic.mc263999.BreakDoorGoalMixin",
"basic.mc264204.LivingEntityMixin",
"basic.mc264285.CreeperMixin",
"basic.mc264979.SettingsMixin",
"basic.mc267125.PlayerListMixin",
Expand Down