Skip to content

Commit

Permalink
Merge branch 'fix-quilt' into printing
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksilassila committed Dec 8, 2022
2 parents bd89158 + 0ab6fbf commit fa3beaf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package me.aleksilassila.litematica.printer.v1_17.mixin;

import net.minecraft.block.Block;
import net.minecraft.item.AxeItem;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

import java.util.Map;

/**
* This class apparently fixes an issue with Quilt.
*/
@Mixin(AxeItem.class)
public interface AxeItemAccessor {
@Accessor("STRIPPED_BLOCKS")
static Map<Block, Block> getStrippedBlocks() {
throw new AssertionError("Untransformed @Accessor");
}

}
3 changes: 2 additions & 1 deletion v1_17/src/main/resources/litematica-printer.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"ConfigsMixin",
"GuiConfigsMixin",
"InputHandlerMixin",
"PlayerMoveC2SPacketMixin"
"PlayerMoveC2SPacketMixin",
"AxeItemAccessor"
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit fa3beaf

Please sign in to comment.