Vector3, Face, Mesh: unconditionally return class

This commit is contained in:
Starbeamrainbowlabs 2021-06-28 01:00:38 +01:00
parent db7b20d485
commit 1984c67295
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 6 additions and 17 deletions

View file

@ -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")

View file

@ -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

View file

@ -391,9 +391,4 @@ function Vector3.__tostring(a)
end end
return Vector3
if worldeditadditions then
worldeditadditions.Vector3 = Vector3
else
return Vector3
end