From 2d5bedc63a0fbdb4e6d42420c26c2f9df2e9a998 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Fri, 8 Mar 2024 22:10:41 +0100 Subject: [PATCH] Added block type to playerInteract event in script api --- .../steamwar/bausystem/features/script/event/EventListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/event/EventListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/event/EventListener.java index 89f9667e..9871c27b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/event/EventListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/event/EventListener.java @@ -125,6 +125,7 @@ public class EventListener implements Listener { table.set("blockY", event.getClickedBlock().getY()); table.set("blockZ", event.getClickedBlock().getZ()); table.set("blockFace", event.getBlockFace().name()); + table.set("blockType", event.getClickedBlock().getType().name()); } else { table.set("hasBlock", LuaValue.valueOf(false)); }