projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c1984
)
Fix deployer in latest minetest.
author
Anthony
<azhang9@gmail.com>
Mon, 1 Apr 2013 17:15:20 +0000
(14:15 -0300)
committer
Anthony
<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
patch
|
blob
|
history
diff --git
a/attic/deployer.lua
b/attic/deployer.lua
index a57a89551cf31b6e059fbde6633cc6c940a51d8d..fdb4b15048d6e10fbf54b3588d3e37267bed3761 100644
(file)
--- 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)