Skip to content

Commit 65228e8

Browse files
authored
Merge branch '1.21.7' into mc-206540
2 parents 03a0034 + b8f05f0 commit 65228e8

7 files changed

Lines changed: 92 additions & 0 deletions

File tree

PATCHED.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| Basic | [MC-22882](https://bugs.mojang.com/browse/MC-22882) | Ctrl + Q won't work on Mac (disabled by default) |
99
| Basic | [MC-46503](https://bugs.mojang.com/browse/MC-46503) | You can retain a mob's shader in spectator mode by running /kill |
1010
| Basic | [MC-46766](https://bugs.mojang.com/browse/MC-46766) | Mining a block in Survival, then changing to Spectator creates a breaking animation and sound |
11+
| Basic | [MC-57057](https://bugs.mojang.com/browse/MC-57057) | Guardian laser attack sound ignores distance |
1112
| Basic | [MC-59810](https://bugs.mojang.com/browse/MC-59810) | Cannot break blocks while sprinting (Ctrl+Click = right click on macOS) *(macOS only)* |
1213
| Basic | [MC-79545](https://bugs.mojang.com/browse/MC-79545) | The experience bar disappears when too many levels are given to the player |
1314
| Basic | [MC-80859](https://bugs.mojang.com/browse/MC-80859) | Starting to drag item stacks over other compatible stacks makes the latter invisible until appearance change (stack size increases) |
@@ -25,6 +26,7 @@
2526
| Basic | [MC-183776](https://bugs.mojang.com/browse/MC-183776) | After switching gamemodes using F3+F4, you need to press F3 twice to toggle the debug screen |
2627
| Basic | [MC-197260](https://bugs.mojang.com/browse/MC-197260) | Armor Stand renders itself and armor dark if its head is in a solid block |
2728
| Basic | [MC-206540](https://bugs.mojang.com/browse/MC-206540) | Increased input delay when riding an entity |
29+
| Basic | [MC-211561](https://bugs.mojang.com/browse/MC-211561) | Fishing line appears in opposite hand when switching slots |
2830
| Basic | [MC-215531](https://bugs.mojang.com/browse/MC-215531) | The carved pumpkin overlay isn't removed when switching into spectator mode |
2931
| Basic | [MC-217716](https://bugs.mojang.com/browse/MC-217716) | The green nausea overlay isn't removed when switching into spectator mode |
3032
| Basic | [MC-231097](https://bugs.mojang.com/browse/MC-231097) | Holding the "Use" button continues to slow down the player even after the used item has been dropped |
@@ -40,6 +42,7 @@
4042
| Basic | [MC-30391](https://bugs.mojang.com/browse/MC-30391) | Chickens, blazes and the wither emit particles when landing from a height, despite falling slowly |
4143
| Basic | [MC-69216](https://bugs.mojang.com/browse/MC-69216) | Switching to spectator mode while fishing keeps rod cast |
4244
| Basic | [MC-81773](https://bugs.mojang.com/browse/MC-81773) | Bows and tridents drawn in survival/creative/adventure mode can be released in spectator mode |
45+
| Basic | [MC-84661](https://bugs.mojang.com/browse/MC-84661) | Glowing is considered a positive effect in potion item tooltips |
4346
| Basic | [MC-88371](https://bugs.mojang.com/browse/MC-88371) | Ender Dragon flies down in the void when the exit portal is destroyed |
4447
| Basic | [MC-89146](https://bugs.mojang.com/browse/MC-89146) | Pistons forget update when being reloaded |
4548
| Basic | [MC-93018](https://bugs.mojang.com/browse/MC-93018) | Wild wolves show breeding hearts but do not breed |
@@ -52,6 +55,7 @@
5255
| Basic | [MC-132878](https://bugs.mojang.com/browse/MC-132878) | Armor stands destroyed by explosions/lava/fire don't produce particles |
5356
| Basic | [MC-155509](https://bugs.mojang.com/browse/MC-155509) | Puffed pufferfish can hurt the player while dying |
5457
| Basic | [MC-160095](https://bugs.mojang.com/browse/MC-160095) | End Rods only break Cactus when moved by pistons |
58+
| Basic | [MC-170462](https://bugs.mojang.com/browse/MC-170462) | Bad Omen is considered a positive effect in potion item tooltips |
5559
| Basic | [MC-179072](https://bugs.mojang.com/browse/MC-179072) | Creepers do not defuse when switching from Survival to Creative/Spectator |
5660
| Basic | [MC-183990](https://bugs.mojang.com/browse/MC-183990) | Group AI of some mobs breaks when their target dies |
5761
| Basic | [MC-199467](https://bugs.mojang.com/browse/MC-199467) | Certain entity animations stop after they've existed in world for too long |
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package dev.isxander.debugify.client.mixins.basic.mc211561;
2+
3+
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
4+
import dev.isxander.debugify.fixes.BugFix;
5+
import dev.isxander.debugify.fixes.FixCategory;
6+
import net.minecraft.client.renderer.entity.FishingHookRenderer;
7+
import net.minecraft.world.entity.HumanoidArm;
8+
import net.minecraft.world.entity.player.Player;
9+
import net.minecraft.world.item.FishingRodItem;
10+
import org.spongepowered.asm.mixin.Mixin;
11+
import org.spongepowered.asm.mixin.injection.At;
12+
13+
@BugFix(id = "MC-211561", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "Fishing line appears in opposite hand when switching slots")
14+
@Mixin(FishingHookRenderer.class)
15+
public class FishingHookRendererMixin {
16+
@ModifyReturnValue(method = "getHoldingArm", at = @At("RETURN"))
17+
private static HumanoidArm fixHoldingArm(HumanoidArm original, Player player) {
18+
return player.getOffhandItem().getItem() instanceof FishingRodItem ? original : player.getMainArm();
19+
}
20+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package dev.isxander.debugify.client.mixins.basic.mc57057;
2+
3+
import dev.isxander.debugify.fixes.BugFix;
4+
import dev.isxander.debugify.fixes.FixCategory;
5+
import net.minecraft.client.resources.sounds.AbstractTickableSoundInstance;
6+
import net.minecraft.client.resources.sounds.GuardianAttackSoundInstance;
7+
import net.minecraft.client.resources.sounds.SoundInstance;
8+
import net.minecraft.sounds.SoundEvent;
9+
import net.minecraft.sounds.SoundSource;
10+
import net.minecraft.util.RandomSource;
11+
import net.minecraft.world.entity.monster.Guardian;
12+
import org.spongepowered.asm.mixin.Mixin;
13+
import org.spongepowered.asm.mixin.injection.At;
14+
import org.spongepowered.asm.mixin.injection.Inject;
15+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
16+
17+
@BugFix(id = "MC-57057", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "Guardian laser attack sound ignores distance")
18+
@Mixin(GuardianAttackSoundInstance.class)
19+
public abstract class GuardianAttackSoundInstanceMixin extends AbstractTickableSoundInstance {
20+
protected GuardianAttackSoundInstanceMixin(SoundEvent soundEvent, SoundSource soundSource, RandomSource randomSource) {
21+
super(soundEvent, soundSource, randomSource);
22+
}
23+
24+
@Inject(method = "<init>", at = @At(value = "TAIL"))
25+
private void fixAttenuation(Guardian guardian, CallbackInfo ci) {
26+
this.attenuation = SoundInstance.Attenuation.LINEAR;
27+
}
28+
}

src/client/resources/debugify.client.mixins.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"basic.mc183776.KeyboardHandlerMixin",
2121
"basic.mc197260.ArmorStandRendererMixin",
2222
"basic.mc197260.LivingEntityRendererMixin",
23+
"basic.mc211561.FishingHookRendererMixin",
2324
"basic.mc215531.GuiMixin",
2425
"basic.mc217716.GameRendererMixin",
2526
"basic.mc22882.AbstractContainerScreenMixin",
@@ -33,6 +34,7 @@
3334
"basic.mc4490.FishingHookRendererMixin",
3435
"basic.mc46503.ClientPacketListenerMixin",
3536
"basic.mc46766.MinecraftMixin",
37+
"basic.mc57057.GuardianAttackSoundInstanceMixin",
3638
"basic.mc577.AbstractContainerScreenMixin",
3739
"basic.mc59810.MouseHandlerMixin",
3840
"basic.mc79545.ExperienceBarRendererMixin",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package dev.isxander.debugify.mixins.basic.mc170462;
2+
3+
import dev.isxander.debugify.fixes.BugFix;
4+
import dev.isxander.debugify.fixes.FixCategory;
5+
import net.minecraft.world.effect.MobEffectCategory;
6+
import net.minecraft.world.effect.MobEffects;
7+
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.injection.At;
9+
import org.spongepowered.asm.mixin.injection.ModifyArg;
10+
11+
@BugFix(id = "MC-170462", category = FixCategory.BASIC, env = BugFix.Env.SERVER, description = "Bad Omen is considered a positive effect in potion item tooltips")
12+
@Mixin(MobEffects.class)
13+
public class MobEffectsMixin {
14+
@ModifyArg(method = "<clinit>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/effect/BadOmenMobEffect;<init>(Lnet/minecraft/world/effect/MobEffectCategory;I)V"))
15+
private static MobEffectCategory badOmenEffectCategory(MobEffectCategory arg) {
16+
return MobEffectCategory.HARMFUL;
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package dev.isxander.debugify.mixins.basic.mc84661;
2+
3+
import dev.isxander.debugify.fixes.BugFix;
4+
import dev.isxander.debugify.fixes.FixCategory;
5+
import net.minecraft.world.effect.MobEffectCategory;
6+
import net.minecraft.world.effect.MobEffects;
7+
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.injection.At;
9+
import org.spongepowered.asm.mixin.injection.ModifyArg;
10+
11+
@BugFix(id = "MC-84661", category = FixCategory.BASIC, env = BugFix.Env.SERVER, description = "Glowing is considered a positive effect in potion item tooltips")
12+
@Mixin(MobEffects.class)
13+
public class MobEffectsMixin {
14+
@ModifyArg(method = "<clinit>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/effect/MobEffect;<init>(Lnet/minecraft/world/effect/MobEffectCategory;I)V", ordinal = 15))
15+
private static MobEffectCategory badOmenEffectCategory(MobEffectCategory arg) {
16+
return MobEffectCategory.HARMFUL;
17+
}
18+
}

src/main/resources/debugify.mixins.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"basic.mc132878.ArmorStandMixin",
1919
"basic.mc155509.PufferfishMixin",
2020
"basic.mc160095.CactusBlockMixin",
21+
"basic.mc170462.MobEffectsMixin",
2122
"basic.mc179072.SwellGoalMixin",
2223
"basic.mc183990.MobMixin",
2324
"basic.mc199467.MthMixin",
@@ -33,6 +34,7 @@
3334
"basic.mc30391.LivingEntityMixin",
3435
"basic.mc69216.ServerPlayerMixin",
3536
"basic.mc7569.RconConsoleSourceMixin",
37+
"basic.mc84661.MobEffectsMixin",
3638
"basic.mc88371.DragonLandingPhaseMixin",
3739
"basic.mc89146.ChunkAccessMixin",
3840
"basic.mc93018.AnimalMixin",

0 commit comments

Comments
 (0)