Skip to content

Commit 7972d05

Browse files
fix MC-170462 and MC-84661 (#406)
* fix MC-170462 * fix MC-84661 * move to server side fixes
1 parent e4c2c56 commit 7972d05

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

PATCHED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
| 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 |
3939
| Basic | [MC-69216](https://bugs.mojang.com/browse/MC-69216) | Switching to spectator mode while fishing keeps rod cast |
4040
| 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 |
41+
| Basic | [MC-84661](https://bugs.mojang.com/browse/MC-84661) | Glowing is considered a positive effect in potion item tooltips |
4142
| Basic | [MC-88371](https://bugs.mojang.com/browse/MC-88371) | Ender Dragon flies down in the void when the exit portal is destroyed |
4243
| Basic | [MC-89146](https://bugs.mojang.com/browse/MC-89146) | Pistons forget update when being reloaded |
4344
| Basic | [MC-93018](https://bugs.mojang.com/browse/MC-93018) | Wild wolves show breeding hearts but do not breed |
@@ -50,6 +51,7 @@
5051
| Basic | [MC-132878](https://bugs.mojang.com/browse/MC-132878) | Armor stands destroyed by explosions/lava/fire don't produce particles |
5152
| Basic | [MC-155509](https://bugs.mojang.com/browse/MC-155509) | Puffed pufferfish can hurt the player while dying |
5253
| Basic | [MC-160095](https://bugs.mojang.com/browse/MC-160095) | End Rods only break Cactus when moved by pistons |
54+
| Basic | [MC-170462](https://bugs.mojang.com/browse/MC-170462) | Bad Omen is considered a positive effect in potion item tooltips |
5355
| Basic | [MC-179072](https://bugs.mojang.com/browse/MC-179072) | Creepers do not defuse when switching from Survival to Creative/Spectator |
5456
| Basic | [MC-183990](https://bugs.mojang.com/browse/MC-183990) | Group AI of some mobs breaks when their target dies |
5557
| 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: 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)