Skip to content

Commit

Permalink
Add access transformer for NeoForge
Browse files Browse the repository at this point in the history
  • Loading branch information
KabanFriends committed Oct 23, 2024
1 parent 30df162 commit 545e791
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ logoFile = "icon.png"
[[mixins]]
config = "craftgr-common.mixins.json"

[[accessTransformers]]
file = "accesstransformer.cfg"

[[dependencies.craftgr]]
modId = "minecraft"
type = "required"
Expand Down
9 changes: 9 additions & 0 deletions neoforge/src/main/resources/accesstransformer.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 545e791

Please sign in to comment.