Check isEmpty for sign color

This commit is contained in:
Jesse Boyd
2019-07-29 05:07:46 +10:00
parent 3303434d52
commit da858f2131

View File

@ -80,7 +80,7 @@ public class AsyncSign extends AsyncBlockState implements Sign {
CompoundTag nbt = getNbtData();
if (nbt != null) {
String color = nbt.getString("Color").toUpperCase();
return DyeColor.valueOf(color);
if (!color.isEmpty()) return DyeColor.valueOf(color);
}
return DyeColor.BLACK;
}