geforkt von Mirrors/Paper
SPIGOT-7333: Correctly handle null in ColorableArmorMeta#setColor()
By: Parker Hawke <hawkeboyz2@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
4147116921
Commit
07453b7fc5
@ -72,7 +72,7 @@ public class CraftMetaColorableArmor extends CraftMetaArmor implements Colorable
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setColor(Color color) {
|
public void setColor(Color color) {
|
||||||
this.color = color;
|
this.color = color == null ? DEFAULT_LEATHER_COLOR : color;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean hasColor() {
|
boolean hasColor() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren