From 0a75817297d917d200123550b0c6ec54087c8c87 Mon Sep 17 00:00:00 2001 From: finder1793 Date: Sat, 14 Dec 2024 16:46:59 -0600 Subject: [PATCH] Added Hand logic --- .../elements/events/EvtFurnitureInteractEvent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/me/asleepp/skriptnexo/elements/events/EvtFurnitureInteractEvent.java b/src/main/java/me/asleepp/skriptnexo/elements/events/EvtFurnitureInteractEvent.java index 8e17379..3c71e65 100644 --- a/src/main/java/me/asleepp/skriptnexo/elements/events/EvtFurnitureInteractEvent.java +++ b/src/main/java/me/asleepp/skriptnexo/elements/events/EvtFurnitureInteractEvent.java @@ -57,6 +57,12 @@ public BlockFace get(NexoFurnitureInteractEvent event) { return event.getBlockFace(); } }, 0); + EventValues.registerEventValue(NexoFurnitureInteractEvent.class, EquipmentSlot.class, new Getter() { + @Override + public EquipmentSlot get(NexoFurnitureInteractEvent event) { + return event.getHand(); + } + }, 0); } @Override