Compare commits

...

3 Commits

Author SHA1 Message Date
Wuzzy ba323c7670 Version 1.5.1 2022-05-13 23:53:49 +02:00
Wuzzy b221493219 Fix exporting the wrong Y values for Y slices 2022-05-13 23:53:07 +02:00
Wuzzy 100f3c65c5 Add compability mode for minetest.get_translator 2022-01-30 02:30:39 +01:00
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Schematic Editor [`schemedit`]
## Version
1.5.0
1.5.1
## Description
This is a mod which allows you to edit and export schematics (`.mts` files).

View File

@ -1,4 +1,9 @@
local S = minetest.get_translator("schemedit")
local S
if minetest.get_translator then
S = minetest.get_translator("schemedit")
else
S = function(s) return s end
end
local F = minetest.formspec_escape
local schemedit = {}
@ -415,7 +420,7 @@ schemedit.add_form("main", {
local slice_list = {}
for _, i in pairs(slist) do
slice_list[#slice_list + 1] = {
ypos = pos.y + i.ypos,
ypos = i.ypos,
prob = schemedit.lua_prob_to_schematic_prob(i.prob),
}
end