diff --git a/Core/src/main/java/com/songoda/core/world/SItemStack.java b/Core/src/main/java/com/songoda/core/world/SItemStack.java index 11458fe7..af43fb53 100644 --- a/Core/src/main/java/com/songoda/core/world/SItemStack.java +++ b/Core/src/main/java/com/songoda/core/world/SItemStack.java @@ -1,5 +1,6 @@ package com.songoda.core.world; +import com.songoda.core.compatibility.CompatibleHand; import com.songoda.core.compatibility.CompatibleSound; import com.songoda.core.compatibility.ServerVersion; import com.songoda.core.nms.NmsManager; @@ -20,6 +21,11 @@ public class SItemStack { this.sItem = NmsManager.getWorld().getItemStack(item); } + public SItemStack(CompatibleHand hand, Player player) { + this.item = hand.getItem(player); + this.sItem = NmsManager.getWorld().getItemStack(item); + } + /** * Damage the selected item *