mirror of git://repo.or.cz/minetest_schemedit.git
Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Wuzzy | ba323c7670 | |
Wuzzy | b221493219 | |
Wuzzy | 100f3c65c5 |
|
@ -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).
|
||||
|
|
9
init.lua
9
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue