Skip to content

Commit

Permalink
Fix issue when Challenge and ChallengeLevel icons were stored with gl…
Browse files Browse the repository at this point in the history
…owing effect and lore from admin panel.

This issue happened because PanelItem overwrites ItemStack metaData.
It is fixed by returning clone of icon element instead of returning actual icon.
  • Loading branch information
BONNe committed Jan 23, 2019
1 parent 9c4c5b7 commit 38fce9a
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 @@ -308,7 +308,7 @@ public List<String> getDescription()
*/
public ItemStack getIcon()
{
return icon;
return icon.clone();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public String getFriendlyName()
*/
public ItemStack getIcon()
{
return icon;
return icon.clone();
}


Expand Down

0 comments on commit 38fce9a

Please sign in to comment.