mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Fixed tostring on userdata in LuaJ.
This commit is contained in:
parent
8d0db7b629
commit
cc02d69320
@ -1055,7 +1055,7 @@ local userdataWrapper = {
|
|||||||
__metatable = "userdata",
|
__metatable = "userdata",
|
||||||
__tostring = function(self)
|
__tostring = function(self)
|
||||||
local data = wrappedUserdata[self]
|
local data = wrappedUserdata[self]
|
||||||
return tostring(select(2, pcall(data.toString, data)))
|
return tostring(select(2, pcall(tostring, data)))
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user