Skip to content

Commit

Permalink
Patch HoeItem.TILLABLES usage
Browse files Browse the repository at this point in the history
Fixes #1033
  • Loading branch information
Su5eD committed Apr 24, 2024
1 parent 07e4c41 commit 51574b1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public static List<Patch> getPatches() {
.injectionPoint("INVOKE", "Lnet/minecraft/world/entity/ai/attributes/AttributeInstance;m_22135_()D")
.putValue("ordinal", 0))
.build(),
Patch.builder()
.targetClass("net/minecraft/world/item/HoeItem")
.targetMethod("m_6225_(Lnet/minecraft/world/item/context/UseOnContext;)Lnet/minecraft/world/InteractionResult;")
.targetInjectionPoint("FIELD", "Lnet/minecraft/world/item/HoeItem;f_41332_:Ljava/util/Map;")
.modifyInjectionPoint("INVOKE", "Lnet/minecraft/world/level/block/state/BlockState;getToolModifiedState(Lnet/minecraft/world/item/context/UseOnContext;Lnet/minecraftforge/common/ToolAction;Z)Lnet/minecraft/world/level/block/state/BlockState;", true)
.build(),
Patch.builder()
.targetClass("net/minecraft/client/KeyMapping")
.targetMethod("m_90837_")
Expand Down

0 comments on commit 51574b1

Please sign in to comment.