Skip to content

Commit

Permalink
Add cloneItem for cloning the delegate only
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Nov 4, 2024
1 parent ae9b8ef commit e5abf71
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ public void lock() {
return new SlimefunItemStack(id, delegate.clone());
}

public @Nonnull ItemStack cloneItem() {
return delegate.clone();
}

@Override
public String toString() {
return "SlimefunItemStack (" + id + (delegate.getAmount() > 1 ? (" x " + delegate.getAmount()) : "") + ')';
Expand Down

0 comments on commit e5abf71

Please sign in to comment.