mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
Vector3, Face, Mesh: unconditionally return class
This commit is contained in:
parent
db7b20d485
commit
1984c67295
3 changed files with 6 additions and 17 deletions
|
@ -8,8 +8,10 @@
|
|||
worldeditadditions = {}
|
||||
worldeditadditions.modpath = minetest.get_modpath("worldeditadditions")
|
||||
dofile(worldeditadditions.modpath.."/utils/vector.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/vector3.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/mesh.lua")
|
||||
worldeditadditions.Vector3 = dofile(worldeditadditions.modpath.."/utils/vector3.lua")
|
||||
worldeditadditions.Mesh,
|
||||
worldeditadditions.Face = dofile(worldeditadditions.modpath.."/utils/mesh.lua")
|
||||
|
||||
|
||||
dofile(worldeditadditions.modpath.."/utils/strings/init.lua")
|
||||
dofile(worldeditadditions.modpath.."/utils/format/init.lua")
|
||||
|
|
|
@ -88,12 +88,4 @@ function Mesh.dedupe(self)
|
|||
end
|
||||
|
||||
|
||||
if worldeditadditions then
|
||||
worldeditadditions.Face = Face
|
||||
worldeditadditions.Mesh = Mesh
|
||||
else
|
||||
return {
|
||||
Face = Face,
|
||||
Mesh = Mesh
|
||||
}
|
||||
end
|
||||
return Mesh, Face
|
||||
|
|
|
@ -391,9 +391,4 @@ function Vector3.__tostring(a)
|
|||
end
|
||||
|
||||
|
||||
|
||||
if worldeditadditions then
|
||||
worldeditadditions.Vector3 = Vector3
|
||||
else
|
||||
return Vector3
|
||||
end
|
||||
return Vector3
|
||||
|
|
Loading…
Reference in a new issue