diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/resources/lib/vector3.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/resources/lib/vector3.lua b/examples/resources/lib/vector3.lua index 2a25a5f..c2a7b10 100644 --- a/examples/resources/lib/vector3.lua +++ b/examples/resources/lib/vector3.lua @@ -45,6 +45,8 @@ Vector3.meta = { function Vector3:new( x, y, z ) if type( x ) == "table" then x, y, z = table.unpack( x ) + elseif type( x ) == "nil" then + x, y, z = 0, 0, 0 end local object = setmetatable( {}, Vector3.meta ) |
