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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user