mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 12:05: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 = {}
|
||||||
worldeditadditions.modpath = minetest.get_modpath("worldeditadditions")
|
worldeditadditions.modpath = minetest.get_modpath("worldeditadditions")
|
||||||
dofile(worldeditadditions.modpath.."/utils/vector.lua")
|
dofile(worldeditadditions.modpath.."/utils/vector.lua")
|
||||||
dofile(worldeditadditions.modpath.."/utils/vector3.lua")
|
worldeditadditions.Vector3 = dofile(worldeditadditions.modpath.."/utils/vector3.lua")
|
||||||
dofile(worldeditadditions.modpath.."/utils/mesh.lua")
|
worldeditadditions.Mesh,
|
||||||
|
worldeditadditions.Face = dofile(worldeditadditions.modpath.."/utils/mesh.lua")
|
||||||
|
|
||||||
|
|
||||||
dofile(worldeditadditions.modpath.."/utils/strings/init.lua")
|
dofile(worldeditadditions.modpath.."/utils/strings/init.lua")
|
||||||
dofile(worldeditadditions.modpath.."/utils/format/init.lua")
|
dofile(worldeditadditions.modpath.."/utils/format/init.lua")
|
||||||
|
|
|
@ -88,12 +88,4 @@ function Mesh.dedupe(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if worldeditadditions then
|
return Mesh, Face
|
||||||
worldeditadditions.Face = Face
|
|
||||||
worldeditadditions.Mesh = Mesh
|
|
||||||
else
|
|
||||||
return {
|
|
||||||
Face = Face,
|
|
||||||
Mesh = Mesh
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
|
@ -391,9 +391,4 @@ function Vector3.__tostring(a)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
return Vector3
|
||||||
if worldeditadditions then
|
|
||||||
worldeditadditions.Vector3 = Vector3
|
|
||||||
else
|
|
||||||
return Vector3
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue