Disallow form->frame when occupied
This was destroying the stack inside the form.
This commit is contained in:
parent
148790bdcb
commit
c4f79c2f6d
@ -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}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user