Skip to content

Commit

Permalink
clone the item, dont always push the same one
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAHuman-xD committed Mar 9, 2024
1 parent 8871a42 commit 8defb52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void apply(List<CommandFlag<?>> flags, SlimefunItem sfItem, Block block)
BlockMenu menu = BlockStorage.getInventory(block);
int[] slots = menu.getPreset().getSlotsAccessedByItemTransport(ItemTransportFlow.INSERT);
for (ItemStack input : this.value) {
if (menu.pushItem(input, slots) != null) {
if (menu.pushItem(new ItemStack(input), slots) != null) {
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void runTask(Block block) {
}

for (ItemStack itemStack : this.inputs) {
menu.pushItem(itemStack, this.slots);
menu.pushItem(new ItemStack(itemStack), this.slots);
}
}

Expand Down

0 comments on commit 8defb52

Please sign in to comment.