Fix logic block bug, protect forceload block from digtron
This commit is contained in:
parent
7356319350
commit
d89b83ce18
@ -202,6 +202,7 @@ minetest.register_node("techage:forceload", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {choppy=2, cracky=2, crumbly=2,
|
groups = {choppy=2, cracky=2, crumbly=2,
|
||||||
|
digtron_protected = 1,
|
||||||
not_in_creative_inventory = techage.max_num_forceload_blocks == 0 and 1 or 0},
|
not_in_creative_inventory = techage.max_num_forceload_blocks == 0 and 1 or 0},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
@ -302,6 +302,8 @@ minetest.register_node("techage:ta3_logic2", {
|
|||||||
meta:set_string("formspec", formspec_help())
|
meta:set_string("formspec", formspec_help())
|
||||||
else
|
else
|
||||||
local nvm = techage.get_nvm(pos)
|
local nvm = techage.get_nvm(pos)
|
||||||
|
local mem = techage.get_mem(pos)
|
||||||
|
mem.code = nil
|
||||||
get_code(pos, nvm)
|
get_code(pos, nvm)
|
||||||
meta:set_string("formspec", formspec(pos, meta))
|
meta:set_string("formspec", formspec(pos, meta))
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
AGPL v3
|
AGPL v3
|
||||||
See LICENSE.txt for more information
|
See LICENSE.txt for more information
|
||||||
|
|
||||||
Lua Logic Block
|
Lua Logic Block (Deprecated and replaced by "techage:ta3_logic2")
|
||||||
|
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user