mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 19:17:40 +01:00
Fix to avoid null colors
https://github.com/BentoBoxWorld/bentobox/issues/293
This commit is contained in:
parent
818e60891f
commit
5039980693
@ -361,7 +361,9 @@ public class Clipboard {
|
||||
en.set("name", e.getCustomName());
|
||||
if (e instanceof Colorable) {
|
||||
Colorable c = (Colorable)e;
|
||||
en.set(COLOR, c.getColor().name());
|
||||
if (c.getColor() != null) {
|
||||
en.set(COLOR, c.getColor().name());
|
||||
}
|
||||
}
|
||||
if (e instanceof Tameable && ((Tameable)e).isTamed()) {
|
||||
en.set("tamed", true);
|
||||
|
Loading…
Reference in New Issue
Block a user