projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de13e8f
)
Place doors to the close side of block instead of the far side
author
Perttu Ahola
<celeron55@gmail.com>
Fri, 30 Mar 2012 21:31:06 +0000
(
00:31
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Fri, 30 Mar 2012 21:31:06 +0000
(
00:31
+0300)
mods/doors/init.lua
patch
|
blob
|
history
diff --git
a/mods/doors/init.lua
b/mods/doors/init.lua
index d8cd80737016e29e37f6917ac346a7016638a04f..3264b27bc47ef2c1f3231e169b2ff8ee64fb383b 100644
(file)
--- a/
mods/doors/init.lua
+++ b/
mods/doors/init.lua
@@
-115,13
+115,13
@@
local on_door_placed = function( pos, node, placer )
dir = placer:get_look_dir()
if round( dir.x ) == 1 then
- newparam = WALLPX
- elseif round( dir.x ) == -1 then
newparam = WALLMX
+ elseif round( dir.x ) == -1 then
+ newparam = WALLPX
elseif round( dir.z ) == 1 then
- newparam = WALLPZ
- elseif round( dir.z ) == -1 then
newparam = WALLMZ
+ elseif round( dir.z ) == -1 then
+ newparam = WALLPZ
end
if und.name == 'air' then