Add mods: technic, moreores, paintings, Nyancat (Pbj_pup). Small fix: sandwiches
This commit is contained in:
parent
15e8e696a2
commit
fb09deddc1
1404 changed files with 156555 additions and 211 deletions
10
mods/fakelib/misc.lua
Normal file
10
mods/fakelib/misc.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
function fakelib.is_vector(x, add_metatable)
|
||||
if type(x) ~= "table" or type(x.x) ~= "number" or type(x.y) ~= "number" or type(x.z) ~= "number" then
|
||||
return false
|
||||
end
|
||||
if add_metatable and getmetatable(x) ~= vector.metatable then
|
||||
setmetatable(x, vector.metatable)
|
||||
end
|
||||
return true
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue