Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 PATCHED.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
| Basic | [MC-121903](https://bugs.mojang.com/browse/MC-121903) | Command block minecarts do not save execution cooldown to NBT |
| Basic | [MC-129909](https://bugs.mojang.com/browse/MC-129909) | Players in spectator mode continue to consume foods and liquids shortly after switching game modes |
| Basic | [MC-132878](https://bugs.mojang.com/browse/MC-132878) | Armor stands destroyed by explosions/lava/fire don't produce particles |
| Basic | [MC-134110](https://bugs.mojang.com/browse/MC-134110) | Structure mirroring breaking apart double chests |
| Basic | [MC-155509](https://bugs.mojang.com/browse/MC-155509) | Puffed pufferfish can hurt the player while dying |
| Basic | [MC-160095](https://bugs.mojang.com/browse/MC-160095) | End Rods only break Cactus when moved by pistons |
| Basic | [MC-179072](https://bugs.mojang.com/browse/MC-179072) | Creepers do not defuse when switching from Survival to Creative/Spectator |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package dev.isxander.debugify.mixins.basic.mc134110;

import com.llamalad7.mixinextras.injector.wrapmethod.WrapMethod;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.world.level.block.ChestBlock;
import net.minecraft.world.level.block.Mirror;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;

import static net.minecraft.world.level.block.ChestBlock.TYPE;

@BugFix(id = "MC-134110", category = FixCategory.BASIC, env = BugFix.Env.SERVER, description = "Structure mirroring breaking apart double chests")
@Mixin(ChestBlock.class)
public class ChestBlockMixin {
@WrapMethod(method = "mirror")
private BlockState fixChestRotations(BlockState blockState, Mirror mirror, Operation<BlockState> original) {
return mirror == Mirror.NONE ? original.call(blockState, mirror) : original.call(blockState, mirror).setValue(TYPE, original.call(blockState, mirror).getValue(TYPE).getOpposite());
Comment thread
MicrocontrollersDev marked this conversation as resolved.
Outdated
}
}
1 change: 1 addition & 0 deletions src/main/resources/assets/debugify/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"debugify.fix_explanation.mc-121903": "Adds NBT tag 'LastExecuted' to command blocks to save and load their last executed property.",
"debugify.fix_explanation.mc-124117": "Sends players packets to update all their effects, their experience and their abilities after cross dimensional teleport.",
"debugify.fix_explanation.mc-132878": "Spawns breaking particles when armour stands are hurt.",
"debugify.fix_explanation.mc-134110": "Correctly rotates double chests when a structure that is mirrored is placed.",
"debugify.fix_explanation.mc-135971": "Overrides CTRL+Q behaviour in crafting slot to repeatedly CTRL+Q until there are no items left in the crafting slot.",
"debugify.fix_explanation.mc-155509": "Checks if the pufferfish is alive before attempting to sting the player.",
"debugify.fix_explanation.mc-160095": "If cacti encounter a piston head, the block that is being moved by the piston is considered instead of the piston.",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/debugify.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"basic.mc121903.MinecraftCommandBlockMixin",
"basic.mc129909.ServerPlayerMixin",
"basic.mc132878.ArmorStandMixin",
"basic.mc134110.ChestBlockMixin",
"basic.mc155509.PufferfishMixin",
"basic.mc160095.CactusBlockMixin",
"basic.mc179072.SwellGoalMixin",
Expand Down