Check isEmpty for sign color

This commit is contained in:
Jesse Boyd 2019-07-29 05:07:46 +10:00
parent 3303434d52
commit da858f2131
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

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;
}