From 3f4372d9a355ea045ad75b3bf082c407430a8147 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 20 Feb 2023 21:30:48 +0100 Subject: [PATCH] Fix AntiNocom 1.9-1.12 --- SpigotCore_Main/src/de/steamwar/core/events/AntiNocom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/events/AntiNocom.java b/SpigotCore_Main/src/de/steamwar/core/events/AntiNocom.java index 7cdf31f..0799523 100644 --- a/SpigotCore_Main/src/de/steamwar/core/events/AntiNocom.java +++ b/SpigotCore_Main/src/de/steamwar/core/events/AntiNocom.java @@ -51,7 +51,7 @@ public class AntiNocom { getPosition = (packet) -> movingBlockPosition.get(useItemPosition.get(packet)); } else { - getPosition = Reflection.getField(blockDig, TechHider.blockPosition, 0)::get; + getPosition = Reflection.getField(useItem, TechHider.blockPosition, 0)::get; } TinyProtocol.instance.addFilter(useItem, (player, packet) -> {