mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 01:39:36 -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)
|
||||
})
|
||||
if (converted.isEmpty) {
|
||||
memo += arg -> null
|
||||
null
|
||||
memo += arg -> arg.toString
|
||||
arg.toString
|
||||
}
|
||||
else {
|
||||
// This is a little nasty but necessary because we need to keep the
|
||||
|
Loading…
x
Reference in New Issue
Block a user