Disallow form->frame when occupied

This was destroying the stack inside the form.
This commit is contained in:
Aaron Suen 2021-11-27 18:37:48 -05:00
parent 148790bdcb
commit c4f79c2f6d

View File

@ -37,6 +37,9 @@ local function regconv(from, to)
action = "pummel",
toolgroups = {thumpy = 1},
indexkeys = {modname .. ":" .. from},
check = function(pos)
return nodecore.stack_get(pos):is_empty()
end,
nodes = {
{match = modname .. ":" .. from, replace = modname .. ":" .. to}
}