Fix deployer in latest minetest.
authorAnthony <azhang9@gmail.com>
Mon, 1 Apr 2013 17:15:20 +0000 (14:15 -0300)
committerAnthony <azhang9@gmail.com>
Mon, 1 Apr 2013 17:15:20 +0000 (14:15 -0300)
Broken when shift-click to avoid on_rightclick was added.

attic/deployer.lua

index a57a89551cf31b6e059fbde6633cc6c940a51d8d..fdb4b15048d6e10fbf54b3588d3e37267bed3761 100644 (file)
@@ -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)