mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Emit boolean constants as numbers
This commit is contained in:
parent
c246bb6e1e
commit
1200354a7b
|
@ -155,6 +155,8 @@ public class RenderingContext {
|
||||||
}
|
}
|
||||||
} else if (cst instanceof Character) {
|
} else if (cst instanceof Character) {
|
||||||
return Integer.toString((Character) cst);
|
return Integer.toString((Character) cst);
|
||||||
|
} else if (cst instanceof Boolean) {
|
||||||
|
return (Boolean) cst ? "1" : "0";
|
||||||
} else {
|
} else {
|
||||||
return cst.toString();
|
return cst.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user