--- rotate.old/wrench_api.lua +++ rotate/wrench_api.lua @@ -396,9 +396,17 @@ local dpos = {x = node_pos2.x-node_pos.x, y = node_pos2.y-node_pos.y, z = node_pos2.z-node_pos.z} result.pointed_side = dpos_to_pointing_map[string.format("%d,%d,%d", dpos.x, dpos.y, dpos.z)] + if not result.faced_side then + result.faced_side = "west" end + if not result.facing_direction then + result.facing_direction = "west" end + if not result.pointed_side then + result.pointed_side = "west" end + if not result.faced_side or not result.facing_direction or not result.pointed_side then - error(string.format("[%s]: player_node_state: internal error: facing_direction = %s, faced_side=%s, pointed_side=%s", - mod_name_upper,result.facing_direction, result.faced_side, result.pointed_side)) + print ("Internal error") +-- error(string.format("[%s]: player_node_state: internal error: facing_direction = %s, faced_side=%s, pointed_side=%s", +-- mod_name_upper,result.facing_direction, result.faced_side, result.pointed_side)) end return result end