summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-04-01 14:15:20 -0300
committerAnthony <azhang9@gmail.com>2013-04-01 14:15:20 -0300
commit23f889dfbc1b7d9fe34010e4f00bcadc1406af9e (patch)
treeaaebaf4262a05533de1efb3dbf2f7a75cc55c79f
parentd9c1984d200d1c825ad59584597e72a98bfbef70 (diff)
downloadpipeworks-23f889dfbc1b7d9fe34010e4f00bcadc1406af9e.tar
pipeworks-23f889dfbc1b7d9fe34010e4f00bcadc1406af9e.tar.gz
pipeworks-23f889dfbc1b7d9fe34010e4f00bcadc1406af9e.tar.bz2
pipeworks-23f889dfbc1b7d9fe34010e4f00bcadc1406af9e.tar.xz
pipeworks-23f889dfbc1b7d9fe34010e4f00bcadc1406af9e.zip
Fix deployer in latest minetest.
Broken when shift-click to avoid on_rightclick was added.
-rw-r--r--attic/deployer.lua1
1 files changed, 1 insertions, 0 deletions
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)