SPIGOT-7333: Correctly handle null in ColorableArmorMeta#setColor()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
4147116921
commit
07453b7fc5
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ public class CraftMetaColorableArmor extends CraftMetaArmor implements Colorable
|
|||
|
||||
@Override
|
||||
public void setColor(Color color) {
|
||||
this.color = color;
|
||||
this.color = color == null ? DEFAULT_LEATHER_COLOR : color;
|
||||
}
|
||||
|
||||
boolean hasColor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue