-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa3beaf
commit a0bac3d
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
v1_18/src/main/java/me/aleksilassila/litematica/printer/v1_18/mixin/AxeItemAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.aleksilassila.litematica.printer.v1_18.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"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
v1_19/src/main/java/me/aleksilassila/litematica/printer/v1_19/mixin/AxeItemAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.aleksilassila.litematica.printer.v1_19.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"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters