mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Fixed NullPointerException when processing transactions for dyed armor
This commit is contained in:
parent
7e49c95832
commit
7825f61e45
@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.FireworkEffect;
|
||||
import org.bukkit.Material;
|
||||
@ -131,7 +132,7 @@ public class ItemMetaHandler {
|
||||
LeatherArmorMeta meta = (LeatherArmorMeta) itemMeta;
|
||||
LeatherArmorMeta subMeta = meta.clone();
|
||||
|
||||
meta.setColor(null);
|
||||
meta.setColor(Bukkit.getServer().getItemFactory().getDefaultLeatherColor());
|
||||
list.add(meta.serialize());
|
||||
metadata.add(list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user