1
0
mirror of git://repo.or.cz/minetest_schemedit.git synced 2024-11-11 18:40:20 +01:00

Remove border entities more liberally

This commit is contained in:
Wuzzy 2019-10-25 01:47:58 +02:00
parent 2fea0b3d27
commit 16950a773d

View File

@ -1004,6 +1004,7 @@ minetest.register_entity("schemedit:display", {
visual_size = {x=10, y=10},
pointable = false,
physical = false,
static_save = false,
glow = minetest.LIGHT_MAX,
on_step = function(self, dtime)
@ -1018,6 +1019,17 @@ minetest.register_entity("schemedit:display", {
end,
})
minetest.register_lbm({
label = "Reset schematic creator border entities",
name = "schemedit:reset_border",
nodenames = "schemedit:creator",
run_at_every_load = true,
action = function(pos, node)
local meta = minetest.get_meta(pos)
meta:set_string("schem_border", "false")
end,
})
-- [chatcommand] Place schematic
minetest.register_chatcommand("placeschem", {
description = S("Place schematic at the position specified or the current player position (loaded from @1)", export_path_trunc),