mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 01:17:36 +00:00
Check isEmpty for sign color
This commit is contained in:
parent
3303434d52
commit
da858f2131
@ -80,7 +80,7 @@ public class AsyncSign extends AsyncBlockState implements Sign {
|
|||||||
CompoundTag nbt = getNbtData();
|
CompoundTag nbt = getNbtData();
|
||||||
if (nbt != null) {
|
if (nbt != null) {
|
||||||
String color = nbt.getString("Color").toUpperCase();
|
String color = nbt.getString("Color").toUpperCase();
|
||||||
return DyeColor.valueOf(color);
|
if (!color.isEmpty()) return DyeColor.valueOf(color);
|
||||||
}
|
}
|
||||||
return DyeColor.BLACK;
|
return DyeColor.BLACK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user