From 545e7917d9c1f246bba76f6a288cb1f304b7f420 Mon Sep 17 00:00:00 2001 From: KabanFriends Date: Wed, 23 Oct 2024 20:31:54 +0900 Subject: [PATCH] Add access transformer for NeoForge --- neoforge/src/main/resources/META-INF/neoforge.mods.toml | 3 +++ neoforge/src/main/resources/accesstransformer.cfg | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 neoforge/src/main/resources/accesstransformer.cfg diff --git a/neoforge/src/main/resources/META-INF/neoforge.mods.toml b/neoforge/src/main/resources/META-INF/neoforge.mods.toml index fb0e2b0..6943474 100644 --- a/neoforge/src/main/resources/META-INF/neoforge.mods.toml +++ b/neoforge/src/main/resources/META-INF/neoforge.mods.toml @@ -15,6 +15,9 @@ logoFile = "icon.png" [[mixins]] config = "craftgr-common.mixins.json" +[[accessTransformers]] +file = "accesstransformer.cfg" + [[dependencies.craftgr]] modId = "minecraft" type = "required" diff --git a/neoforge/src/main/resources/accesstransformer.cfg b/neoforge/src/main/resources/accesstransformer.cfg new file mode 100644 index 0000000..fa4decc --- /dev/null +++ b/neoforge/src/main/resources/accesstransformer.cfg @@ -0,0 +1,9 @@ +# Classes +public-f net.minecraft.client.gui.navigation.ScreenRectangle +public net.minecraft.client.gui.GuiGraphics$ScissorStack + +# Fields +public net.minecraft.client.gui.GuiGraphics scissorStack + +# Methods +public net.minecraft.client.gui.GuiGraphics applyScissor(Lnet/minecraft/client/gui/navigation/ScreenRectangle;)V \ No newline at end of file