From: Perttu Ahola Date: Fri, 30 Mar 2012 21:31:06 +0000 (+0300) Subject: Place doors to the close side of block instead of the far side X-Git-Tag: 0.4.dev-20120408~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48a76211a89e98ad16710ead16e9d05dfe98a457;p=oweals%2Fminetest_game.git Place doors to the close side of block instead of the far side --- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index d8cd8073..3264b27b 100644 --- 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