mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Fallback to to-stringing values when pushing them to Lua instead of yielding null
.
Should make it easier to track down missing converters and work well as a default for many things (e.g. ResourceLocations).
This commit is contained in:
parent
970ca688d9
commit
ec2bca401c
@ -143,8 +143,8 @@ private[oc] object Registry extends api.detail.DriverAPI {
|
|||||||
case t: Throwable => OpenComputers.log.warn("Type converter threw an exception.", t)
|
case t: Throwable => OpenComputers.log.warn("Type converter threw an exception.", t)
|
||||||
})
|
})
|
||||||
if (converted.isEmpty) {
|
if (converted.isEmpty) {
|
||||||
memo += arg -> null
|
memo += arg -> arg.toString
|
||||||
null
|
arg.toString
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// This is a little nasty but necessary because we need to keep the
|
// This is a little nasty but necessary because we need to keep the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user