From 11d823c70d661deac05d06b97e00dda85f761143 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 25 Mar 2015 03:57:21 +0100 Subject: [PATCH] repaired ladder rotation for non-realtest worlds --- place_buildings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/place_buildings.lua b/place_buildings.lua index 8ba8490..7b26a74 100644 --- a/place_buildings.lua +++ b/place_buildings.lua @@ -197,7 +197,7 @@ local function generate_building_translate_nodenames( nodenames, replacements, c new_nodes[ i ].change_param2[4] = 0; new_nodes[ i ].paramtype2 = 'facedir'; -- ..except if they are stairs or ladders - elseif( node_name == 'default:ladder' or string.sub( node_name, 1, 7 ) == 'stairs:' or string.sub( node_name, 1, 6 ) == 'doors:') then + elseif( string.sub( node_name, 1, 7 ) == 'stairs:' or string.sub( node_name, 1, 6 ) == 'doors:') then new_nodes[ i ].paramtype2 = 'facedir'; -- normal nodes elseif( regnode and regnode.paramtype2 and (regnode.paramtype2=='facedir' or regnode.paramtype2=='wallmounted')) then