mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 12:57:52 +01:00
Fix issue when Challenge and ChallengeLevel icons were stored with glowing 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.
This commit is contained in:
parent
9c4c5b7d86
commit
38fce9a4b0
@ -308,7 +308,7 @@ public class Challenge implements DataObject
|
||||
*/
|
||||
public ItemStack getIcon()
|
||||
{
|
||||
return icon;
|
||||
return icon.clone();
|
||||
}
|
||||
|
||||
|
||||
|
@ -138,7 +138,7 @@ public class ChallengeLevel implements DataObject, Comparable<ChallengeLevel>
|
||||
*/
|
||||
public ItemStack getIcon()
|
||||
{
|
||||
return icon;
|
||||
return icon.clone();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user