Skip to content

Commit

Permalink
Patch #827
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Mar 12, 2024
1 parent 1323ce8 commit e5d5bdd
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,16 @@ public static List<Patch> getPatches() {
.modifyParams(b -> b.insert(0, Type.INT_TYPE).insert(1, Type.INT_TYPE).targetType(ModifyMethodParams.TargetType.METHOD))
.modifyInjectionPoint("HEAD", "", true)
.build(),
Patch.builder()
.targetClass("net/minecraft/client/gui/Gui")
.targetMethod("m_280173_(Lnet/minecraft/client/gui/GuiGraphics;)V")
.targetInjectionPoint("com.nhoryzon.mc.farmersdelight.mixin.util.BeforeInc", "")
.targetAnnotationValues(h -> h.getNested("at").flatMap(v -> v.<List<String>>getValue("args").map(a -> a.get().get(0).equals("intValue=-10"))).orElse(false))
.extractMixin("net/minecraftforge/client/gui/overlay/ForgeGui")
.modifyTarget("renderFood(IILnet/minecraft/client/gui/GuiGraphics;)V")
.modifyParams(b -> b.insert(0, Type.INT_TYPE).insert(1, Type.INT_TYPE).targetType(ModifyMethodParams.TargetType.METHOD))
.modifyInjectionPoint("INVOKE", "Lcom/mojang/blaze3d/systems/RenderSystem;disableBlend()V")
.build(),
Patch.builder()
.targetClass("net/minecraft/client/gui/Gui")
.targetMethod("m_280173_(Lnet/minecraft/client/gui/GuiGraphics;)V")
Expand Down

0 comments on commit e5d5bdd

Please sign in to comment.