From 9adde326bef992cd56e3ea6f59c91dd45454fe5b Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:13:15 +0200 Subject: [PATCH] Replace Swing Through Grass interact method --- .../tweaks/misc/swingthroughgrass/UTSwingThroughGrass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mod/acgaming/universaltweaks/tweaks/misc/swingthroughgrass/UTSwingThroughGrass.java b/src/main/java/mod/acgaming/universaltweaks/tweaks/misc/swingthroughgrass/UTSwingThroughGrass.java index 2ec86799..4b5d2441 100644 --- a/src/main/java/mod/acgaming/universaltweaks/tweaks/misc/swingthroughgrass/UTSwingThroughGrass.java +++ b/src/main/java/mod/acgaming/universaltweaks/tweaks/misc/swingthroughgrass/UTSwingThroughGrass.java @@ -41,7 +41,7 @@ public static void utInteractThroughGrass(PlayerInteractEvent.RightClickBlock ev Entity entity = getEntityBehindGrass(event.getWorld(), event.getPos(), event.getEntityPlayer()); if (entity != null) { - entity.processInitialInteract(event.getEntityPlayer(), event.getHand()); + event.getEntityPlayer().interactOn(entity, event.getHand()); event.setCanceled(true); } }