Allow shift+move for preassign inventory

master
Joachim Stolberg 2021-03-06 11:33:15 +01:00
parent 08858f8749
commit cf97fa78ca
2 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,9 @@ local function formspec_cfg(pos, mem)
"list[context;filter;5,1;4,2;]"..
"label[5.3,3;5]label[6.3,3;6]label[7.3,3;7]label[8.3,3;8]"..
"button[0.2,1;1.5,1;back;"..I("Back").."]"..
"list[current_player;main;0.5,3.8;8,4;]"
"list[current_player;main;0.5,3.8;8,4;]"..
"listring[context;filter]"..
"listring[current_player;main]"
end
local function get_capa(itemstack)

View File

@ -272,7 +272,7 @@ signs_bot.register_botcommand("pause", {
end,
cmnd = function(base_pos, mem, sec)
if not mem.steps then
mem.steps = tonumber(sec or 1)
mem.steps = tonumber(sec) or 1
end
mem.steps = mem.steps - 1
if mem.steps == 0 then