little changed
This commit is contained in:
parent
ac303c5fc6
commit
14afba3a2b
1 changed files with 5 additions and 2 deletions
|
@ -72,8 +72,11 @@ function processNBTComponent(data) {
|
|||
}
|
||||
|
||||
function VaildText(comp) {
|
||||
if ((comp || comp !== "") && (comp.text || comp.text !== "") && (comp.keybind || comp.keybind !== "") && (comp.translate || comp.translate !== "")) return true
|
||||
return false;
|
||||
return (typeof comp === "string" && comp !== "") ||
|
||||
(typeof comp.text === "string" && comp.text !== "") ||
|
||||
(typeof comp.keybind === "string" && comp.keybind !== "") ||
|
||||
(typeof comp.translate === "string" && comp.translate !== "") ||
|
||||
(typeof comp.extra === "object" && Array.isArray(comp.extra));
|
||||
}
|
||||
|
||||
function parseMinecraftColor(color) {
|
||||
|
|
Loading…
Reference in a new issue