From 23f889dfbc1b7d9fe34010e4f00bcadc1406af9e Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 1 Apr 2013 14:15:20 -0300 Subject: [PATCH] Fix deployer in latest minetest. Broken when shift-click to avoid on_rightclick was added. --- attic/deployer.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/attic/deployer.lua b/attic/deployer.lua index a57a895..fdb4b15 100644 --- a/attic/deployer.lua +++ b/attic/deployer.lua @@ -47,6 +47,7 @@ deployer_on = function(pos, node) local placer={} function placer:get_player_name() return "deployer" end function placer:getpos() return pos end + function placer:get_player_control() return {jump=false,right=false,left=false,LMB=false,RMB=false,sneak=false,aux1=false,down=false,up=false} end local stack2=minetest.item_place(stack,placer,{type="node", under=pos1, above=pos2}) invlist[i]=stack2 inv:set_list("main",invlist) -- 2.30.2