mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01:00
Place doors to the close side of block instead of the far side
This commit is contained in:
parent
de13e8f1fa
commit
48a76211a8
@ -115,13 +115,13 @@ local on_door_placed = function( pos, node, placer )
|
|||||||
dir = placer:get_look_dir()
|
dir = placer:get_look_dir()
|
||||||
|
|
||||||
if round( dir.x ) == 1 then
|
if round( dir.x ) == 1 then
|
||||||
newparam = WALLPX
|
|
||||||
elseif round( dir.x ) == -1 then
|
|
||||||
newparam = WALLMX
|
newparam = WALLMX
|
||||||
|
elseif round( dir.x ) == -1 then
|
||||||
|
newparam = WALLPX
|
||||||
elseif round( dir.z ) == 1 then
|
elseif round( dir.z ) == 1 then
|
||||||
newparam = WALLPZ
|
|
||||||
elseif round( dir.z ) == -1 then
|
|
||||||
newparam = WALLMZ
|
newparam = WALLMZ
|
||||||
|
elseif round( dir.z ) == -1 then
|
||||||
|
newparam = WALLPZ
|
||||||
end
|
end
|
||||||
|
|
||||||
if und.name == 'air' then
|
if und.name == 'air' then
|
||||||
|
Loading…
Reference in New Issue
Block a user