Skip to content
Snippets Groups Projects
Commit 48a76211 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Place doors to the close side of block instead of the far side

parent de13e8f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment