Skip to content

Commit

Permalink
Do not override cloning requests in items
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
  • Loading branch information
TheSilkMiner committed Jul 21, 2022
1 parent 4450d8c commit cf0391d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ public T cloning(@ZenCodeType.Nullable final StandardItemProperties standard, @Z
if ((standard != null && this.cloningProperties != null) || (food != null && this.cloningFood != null)) {
throw new IllegalStateException("Already specified properties to clone from");
}
this.cloningProperties = standard;
this.cloningFood = food;
if (standard != null) {
this.cloningProperties = standard;
}
if (food != null) {
this.cloningFood = food;
}
return this.self();
}

Expand Down

0 comments on commit cf0391d

Please sign in to comment.