Fix logic block bug, protect forceload block from digtron

master
Joachim Stolberg 2021-03-30 22:17:22 +02:00
parent 7356319350
commit d89b83ce18
3 changed files with 4 additions and 1 deletions

View File

@ -202,6 +202,7 @@ minetest.register_node("techage:forceload", {
paramtype = "light",
sunlight_propagates = true,
groups = {choppy=2, cracky=2, crumbly=2,
digtron_protected = 1,
not_in_creative_inventory = techage.max_num_forceload_blocks == 0 and 1 or 0},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),

View File

@ -302,6 +302,8 @@ minetest.register_node("techage:ta3_logic2", {
meta:set_string("formspec", formspec_help())
else
local nvm = techage.get_nvm(pos)
local mem = techage.get_mem(pos)
mem.code = nil
get_code(pos, nvm)
meta:set_string("formspec", formspec(pos, meta))
end

View File

@ -8,7 +8,7 @@
AGPL v3
See LICENSE.txt for more information
Lua Logic Block
Lua Logic Block (Deprecated and replaced by "techage:ta3_logic2")
]]--