9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

fix: not cloning ItemsAdder items once got

This commit is contained in:
LoJoSho
2024-08-01 18:49:14 -05:00
parent 68ea64407e
commit 538322733d

View File

@@ -35,7 +35,7 @@ public class HookItemAdder extends Hook {
if (enabled) { if (enabled) {
CustomStack stack = CustomStack.getInstance(itemId); CustomStack stack = CustomStack.getInstance(itemId);
if (stack == null) return null; if (stack == null) return null;
return stack.getItemStack(); return stack.getItemStack().clone();
} else { } else {
return new ItemStack(Material.AIR); return new ItemStack(Material.AIR);
} }